Thickness Constructors

Definition

Overloads

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.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Thickness struct. For more information, see Thickness in the UWP API reference.

Thickness(Double)

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

C#
public Thickness(double uniformLength);

Parameters

uniformLength
Double

The uniform length applied to all four sides of the bounding rectangle.

Applies to

UWP 10.0
Product Versions
UWP 10.0

Thickness(Double, Double, Double, Double)

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

C#
public Thickness(double left, double top, double right, double bottom);

Parameters

left
Double

The thickness for the left side of the rectangle.

top
Double

The thickness for the upper side of the rectangle.

right
Double

The thickness for the right side of the rectangle.

bottom
Double

The thickness for the lower side of the rectangle.

Applies to

UWP 10.0
Product Versions
UWP 10.0