Uredi

Deli z drugimi prek


Thickness Struct

Definition

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

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

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.

Applies to

See also