[]
Represents padding, border or margin information associated with a user interface (UI) element.
[TypeConverter(typeof(ThicknessConverter))]
public struct Thickness
Name | Description |
---|---|
Thickness(int) | Initializes a new instance of a Thickness. |
Thickness(int, int) | Initializes a new instance of a Thickness. |
Thickness(int, int, int, int) | Initializes a new instance of a Thickness. |
Name | Description |
---|---|
Bottom | Gets or sets the thickness value for the bottom edge. |
Empty | Provides a Thickness object with no thickness. |
Height | Gets the combined thickness for the top and bottom edges. |
IsEmpty | Returns true if the Thickness object is empty. |
Left | Gets or sets the thickness value for the left edge. |
Right | Gets or sets the thickness value for the right edge. |
Top | Gets or sets the thickness value for the top edge. |
Width | Gets the combined thickness for the right and left edges. |
Name | Description |
---|---|
Deflate(Rectangle) | |
DeflateRtl(Rectangle) | Deflates the specified Rectangle by the current Thickness with RightToLeft layout. |
Equals(object) | Determines whether the value of the specified object is equivalent to the current Thickness. |
GetHashCode() | Generates a hash code for the current Thickness. |
Inflate(Rectangle) | |
Inflate(int) | Inflates the current Thickness by the specified size. |
Inflate(int, int) | Inflates the current Thickness by the specified values. |
InflateRtl(Rectangle) | Inflates the specified Rectangle by the current Thickness with RightToLeft layout. |
SwapLeftRight() | Swaps the values of the Left and Right properties. |
ToString() | Returns a string that represents the current Thickness. |
Name | Description |
---|---|
operator ==(Thickness, Thickness) | Tests whether two specified Thickness objects are equivalent. |
implicit operator Padding(Thickness) | |
implicit operator Thickness(int) | |
implicit operator Thickness(Padding) | |
operator !=(Thickness, Thickness) | Tests whether two specified Thickness objects are not equivalent. |