コード例 #1
0
 /// <summary>
 /// Creates a new GcPrintable control, with the specified <i>x</i> and <i>y</i> values, and width and height.
 /// </summary>
 /// <param name="x">The <i>x</i> value, in hundredths of an inch.</param>
 /// <param name="y">The <i>y</i> value, in hundredths of an inch.</param>
 /// <param name="width">The width, in hundredths of an inch.</param>
 /// <param name="height">The height, in hundredths of an inch.</param>
 protected GcPrintableControl(int x, int y, int width, int height)
 {
     this.padding = PaddingInfo.Empty;
     this.Init();
     base.x      = x;
     base.y      = y;
     this.width  = width;
     this.height = height;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new GcPrintable control, with the specified <i>x</i> and <i>y</i> values, width and height, and size flags.
 /// </summary>
 /// <param name="x">The <i>x</i> value, in hundredths of an inch.</param>
 /// <param name="y">The <i>y</i> value, in hundredths of an inch.</param>
 /// <param name="width">The width, in hundredths of an inch.</param>
 /// <param name="height">The height, in hundredths of an inch.</param>
 /// <param name="canShrink">Whether the size of the control can decrease if contents do not fill the control.</param>
 /// <param name="canGrow">Whether the size of the control can increase if contents are larger than the control.</param>
 protected GcPrintableControl(int x, int y, int width, int height, bool canShrink, bool canGrow)
 {
     this.padding = PaddingInfo.Empty;
     this.Init();
     base.x         = x;
     base.y         = y;
     this.width     = width;
     this.height    = height;
     this.canShrink = canShrink;
     this.canGrow   = canGrow;
 }
コード例 #3
0
ファイル: PaddingInfo.cs プロジェクト: Daoting/dt
 /// <summary>
 /// Returns whether the PaddingInfo object equals the specified object.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns><c>true</c> if the objects are equal; otherwise, <c>false</c>.</returns>
 public bool Equals(PaddingInfo obj)
 {
     return(((obj.all.Equals(this.all) && (obj.top == this.top)) && ((obj.left == this.left) && (obj.right == this.right))) && (obj.bottom == this.bottom));
 }
コード例 #4
0
ファイル: PaddingInfo.cs プロジェクト: Daoting/dt
 /// <summary>
 /// Subtracts the specified <see cref="T:Dt.Cells.Data.PaddingInfo" /> object.
 /// </summary>
 /// <param name="p1">The first padding information object.</param>
 /// <param name="p2">The second padding information object.</param>
 /// <returns>A new PaddingInfo object that is the result of subtracting the second object from the first.</returns>
 public static PaddingInfo Subtract(PaddingInfo p1, PaddingInfo p2)
 {
     return(p1 - p2);
 }
コード例 #5
0
ファイル: PaddingInfo.cs プロジェクト: Daoting/dt
 /// <summary>
 /// Adds the specified <see cref="T:Dt.Cells.Data.PaddingInfo" /> objects.
 /// </summary>
 /// <param name="p1">The first padding information object.</param>
 /// <param name="p2">The second padding information object.</param>
 /// <returns>A new PaddingInfo object that is the result of adding the two specified objects.</returns>
 public static PaddingInfo Add(PaddingInfo p1, PaddingInfo p2)
 {
     return(p1 + p2);
 }
コード例 #6
0
ファイル: PaddingInfo.cs プロジェクト: Daoting/dt
 /// <summary>
 /// Creates a new set of padding information.
 /// </summary>
 static PaddingInfo()
 {
     Empty = new PaddingInfo(0);
 }
コード例 #7
0
 /// <summary>
 /// Creates a new GcPrintable control, with the specified <i>x</i> and <i>y</i> values.
 /// </summary>
 /// <param name="x">The <i>x</i> value, in hundredths of an inch.</param>
 /// <param name="y">The <i>y</i> value, in hundredths of an inch.</param>
 protected GcPrintableControl(int x, int y) : base(x, y)
 {
     this.padding = PaddingInfo.Empty;
     this.Init();
 }
コード例 #8
0
 /// <summary>
 /// Creates a new GcPrintable control.
 /// </summary>
 protected GcPrintableControl()
 {
     this.padding = PaddingInfo.Empty;
     this.Init();
 }