Struct Thickness
[SECURITY CRITICAL] Describes the thickness of a frame around a rectangle. Four System.Double values describe the Windows.UI.Xaml.Thickness.Left, Windows.UI.Xaml.Thickness.Top, Windows.UI.Xaml.Thickness.Right, and Windows.UI.Xaml.Thickness.Bottom sides of the rectangle, respectively.
Inherited Members
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public struct Thickness
Constructors
| Improve this Doc View SourceThickness(Double)
[SECURITY CRITICAL] Initializes a Windows.UI.Xaml.Thickness structure that has the specified uniform length on each side.
Declaration
public Thickness(double uniformLength)
Parameters
Type | Name | Description |
---|---|---|
System.Double | uniformLength | The uniform length applied to all four sides of the bounding rectangle. |
Thickness(Double, Double, Double, Double)
[SECURITY CRITICAL] Initializes a Windows.UI.Xaml.Thickness structure that has specific lengths (supplied as a System.Double) applied to each side of the rectangle.
Declaration
public Thickness(double left, double top, double right, double bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Double | left | The thickness for the left side of the rectangle. |
System.Double | top | The thickness for the upper side of the rectangle. |
System.Double | right | The thickness for the right side of the rectangle |
System.Double | bottom | The thickness for the lower side of the rectangle. |
Properties
| Improve this Doc View SourceBottom
[SECURITY CRITICAL] Gets or sets the width, in pixels, of the lower side of the bounding rectangle.
Declaration
public double Bottom { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Left
[SECURITY CRITICAL] Gets or sets the width, in pixels, of the left side of the bounding rectangle.
Declaration
public double Left { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Right
[SECURITY CRITICAL] Gets or sets the width, in pixels, of the right side of the bounding rectangle.
Declaration
public double Right { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Top
[SECURITY CRITICAL] Gets or sets the width, in pixels, of the upper side of the bounding rectangle.
Declaration
public double Top { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceEquals(Object)
[SECURITY CRITICAL] Compares this Windows.UI.Xaml.Thickness structure to another System.Object for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two objects are equal; otherwise, false. |
Overrides
Equals(Thickness)
[SECURITY CRITICAL] Compares this Windows.UI.Xaml.Thickness structure to another Windows.UI.Xaml.Thickness structure for equality.
Declaration
public bool Equals(Thickness thickness)
Parameters
Type | Name | Description |
---|---|---|
Thickness | thickness | An instance of Windows.UI.Xaml.Thickness to compare for equality. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Windows.UI.Xaml.Thickness are equal; otherwise, false. |
GetHashCode()
[SECURITY CRITICAL] Returns the hash code of the structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance of Windows.UI.Xaml.Thickness. |
Overrides
ToString()
Returns the string representation of the Thickness structure. structure.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the Thickness value. |
Overrides
Operators
| Improve this Doc View SourceEquality(Thickness, Thickness)
[SECURITY CRITICAL] Compares the value of two Windows.UI.Xaml.Thickness structures for equality.
Declaration
public static bool operator ==(Thickness t1, Thickness t2)
Parameters
Type | Name | Description |
---|---|---|
Thickness | t1 | The first structure to compare. |
Thickness | t2 | The other structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Windows.UI.Xaml.Thickness are equal; otherwise, false. |
Inequality(Thickness, Thickness)
[SECURITY CRITICAL] Compares two Windows.UI.Xaml.Thickness structures for inequality.
Declaration
public static bool operator !=(Thickness t1, Thickness t2)
Parameters
Type | Name | Description |
---|---|---|
Thickness | t1 | The first structure to compare. |
Thickness | t2 | The other structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Windows.UI.Xaml.Thickness are not equal; otherwise, false. |