A newer version of this page is available.
Switch to the current version.
PaddingInfo Members
Contains padding or margin information associated with a control or a brick.Constructors
Name | Description |
---|---|
PaddingInfo(PaddingInfo, Single) | Initializes a new instance of the PaddingInfo class and copies the settings from the object passed as the parameter according to the specified dpi value. |
PaddingInfo(GraphicsUnit) | Initializes a new instance of the PaddingInfo class with the dpi of the specified graphics unit. |
PaddingInfo(Int32, Int32, Int32, Int32) | Initializes a new instance of the PaddingInfo class with the specified left, right, top and bottom values. |
PaddingInfo(Int32, Int32, Int32, Int32, GraphicsUnit) | Initializes a new instance of the PaddingInfo class with the specified left, right, top and bottom values, and the dpi of the specified graphics unit. |
PaddingInfo(Int32, Int32, Int32, Int32, Single) | Initializes a new instance of the PaddingInfo class with the specified left, right, top, bottom and dpi values. |
PaddingInfo(Int32, Single) | Initializes a new instance of the PaddingInfo class with the specified settings. |
PaddingInfo(Single) | Initializes a new instance of the PaddingInfo class with the specified dpi value. |
Fields
Name | Description |
---|---|
Empty static | Provides a PaddingInfo object with no padding. |
Properties
Name | Description |
---|---|
All | Specifies padding for all the element's sides. |
Bottom | Gets or sets the padding value for the bottom edge. |
Dpi | Gets or sets the dpi value used to perform internal calculations. |
IsEmpty | Determines whether the padding is empty (all padding values are null). |
Left | Gets or sets the padding value for the left edge. |
Right | Gets or sets the padding value for the right edge. |
Top | Gets or sets the padding value for the top edge. |
Methods
Name | Description |
---|---|
Deflate(RectangleF, Single) | Deflates the specified rectangle by the rectangle of the current padding with the specified dpi. |
Deflate(SizeF, Single) | Deflates the specified size by the size of the current padding with the specified dpi. |
DeflateHeight(Single) | Deflates the specified height value by the height of the current padding. |
DeflateHeight(Single, Single) | Deflates the specified height value by the height of the current padding with the specified dpi. |
DeflateWidth(Single) | Deflates the specified width value by the width of the current padding. |
DeflateWidth(Single, Single) | Deflates the specified width value by the width of the current padding with the specified dpi. |
Equals(PaddingInfo) | Determines whether or not the specified object is equal to the current PaddingInfo instance. |
Equals(Object) | Determines whether the specified object is equal to the current PaddingInfo instance. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
GetHashCode() | Gets the hash code (a number) that corresponds to the value of the current PaddingInfo object. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
Inflate(RectangleF, Single) | Inflates the specified rectangle by the rectangle of the current padding with the specified dpi. |
Inflate(SizeF, Single) | Inflates the specified size by the size of the current padding with the specified dpi. |
InflateHeight(Single) | Inflates the specified height value by the height of the current padding. |
InflateHeight(Single, Single) | Inflates the specified height value by the height of the current padding with the specified dpi. |
InflateWidth(Single) | Inflates the specified width value by the width of the current padding. |
InflateWidth(Single, Single) | Inflates the specified width value by the width of the current padding with the specified dpi. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
RotatePaddingCounterclockwise(Int32) | Rotates padding values counterclockwise the specified number of times. |
ToString() | Returns the fully qualified type name of this instance. Inherited from ValueType. |
Operators
Name |
---|
Equality(PaddingInfo, PaddingInfo) static |
Implicit(Int32 to PaddingInfo) static |
Inequality(PaddingInfo, PaddingInfo) static |
See Also
Feedback