Thickness Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public value class Thickness
[System.Security.SecurityCritical]
public struct Thickness
[<System.Security.SecurityCritical>]
type Thickness = struct
Public Structure Thickness
- Inheritance
- Attributes
Remarks
This struct represents the .NET projection of the Windows Runtime (WinRT) Thickness
struct. For more information, see Thickness in the UWP API reference.
Constructors
Thickness(Double) |
Initializes a Thickness structure that has the specified uniform length on each side. |
Thickness(Double, Double, Double, Double) |
Initializes a Thickness structure that has specific lengths (supplied as a Double) applied to each side of the rectangle. |
Properties
Bottom |
Gets or sets the width, in pixels, of the lower side of the bounding rectangle. |
Left |
Gets or sets the width, in pixels, of the left side of the bounding rectangle. |
Right |
Gets or sets the width, in pixels, of the right side of the bounding rectangle. |
Top |
Gets or sets the width, in pixels, of the upper side of the bounding rectangle. |
Methods
Equals(Object) |
Compares this Thickness structure to another Object for equality. |
Equals(Thickness) |
Compares this Thickness structure to another Thickness structure for equality. |
GetHashCode() |
Returns the hash code of the struct. |
ToString() |
Returns the string representation of the Thickness structure. |
Operators
Equality(Thickness, Thickness) |
Compares the value of two Thickness structs for equality. |
Inequality(Thickness, Thickness) |
Compares two Thickness structs for inequality. |