Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Thickness Struct

Definition

Namespace:
Windows.UI.Xaml
Assembly:
System.Runtime.WindowsRuntime.UI.Xaml.dll

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.

Describes the thickness of a frame around a rectangle. Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

public value class Thickness
[System.Security.SecurityCritical]
public struct Thickness
[<System.Security.SecurityCritical>]
type Thickness = struct
Public Structure Thickness
Inheritance
Thickness
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

Name Description
Thickness(Double, Double, Double, Double)

Initializes a Thickness structure that has specific lengths (supplied as a Double) applied to each side of the rectangle.

Thickness(Double)

Initializes a Thickness structure that has the specified uniform length on each side.

Properties

Name Description
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

Name Description
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

Name Description
Equality(Thickness, Thickness)

Compares the value of two Thickness structs for equality.

Inequality(Thickness, Thickness)

Compares two Thickness structs for inequality.

Applies to

See also


Feedback

Was this page helpful?