Summary
Describes the thickness of a frame around a rectangle.
Syntax
public readonly struct Thickness : ValueType, IEquatable<Thickness>
Constructors
Name | Summary |
---|---|
Thickness |
Initializes a new instance of the Thickness structure.
|
Thickness |
Initializes a new instance of the Thickness structure.
|
Thickness |
Initializes a new instance of the Thickness structure.
|
Properties
Name | Value | Summary |
---|---|---|
Bottom | double |
Gets the thickness on the bottom.
|
IsDefault | bool |
Gets a value indicating whether the left, top, right and bottom thickness values are zero.
|
IsEmpty | bool |
Gets a value indicating whether all sides are set to 0.
|
IsUniform | bool |
Gets a value indicating whether all sides are equal.
|
Left | double |
Gets the thickness on the left.
|
Right | double |
Gets the thickness on the right.
|
Top | double |
Gets the thickness on the top.
|
Methods
Name | Value | Summary |
---|---|---|
Deconstruct |
void |
Deconstructor the thickness into its left, top, right and bottom thickness values.
|
Equals |
bool |
Checks for equality between a thickness and an object.
|
Equals |
bool |
Returns a boolean indicating whether the thickness is equal to the other given point.
|
GetHashCode |
int |
Returns a hash code for a
Thickness .
|
Parse |
Thickness |
Parses a
Thickness string.
static
|
ToString |
string |
Returns the string representation of the thickness.
|