Thickness Constructors

Definition

Overloads

Thickness(Double)

Creates a new Thickness object that represents a uniform thickness of size uniformSize.

Thickness(Double, Double)

Creates a new Thickness object that has a horizontal thickness of horizontalSize and a vertical thickness of verticalSize.

Thickness(Double, Double, Double, Double)

Creates a new Thickness object with thicknesses defined by left, top, right, and bottom.

Thickness(Double)

Creates a new Thickness object that represents a uniform thickness of size uniformSize.

public Thickness (double uniformSize);
new Xamarin.Forms.Thickness : double -> Xamarin.Forms.Thickness

Parameters

uniformSize
Double

The uniform size of all edges in the new thickness.

Thickness(Double, Double)

Creates a new Thickness object that has a horizontal thickness of horizontalSize and a vertical thickness of verticalSize.

public Thickness (double horizontalSize, double verticalSize);
new Xamarin.Forms.Thickness : double * double -> Xamarin.Forms.Thickness

Parameters

horizontalSize
Double

The width of the left and right thicknesses.

verticalSize
Double

The height of the top and bottom thicknesses.

Thickness(Double, Double, Double, Double)

Creates a new Thickness object with thicknesses defined by left, top, right, and bottom.

public Thickness (double left, double top, double right, double bottom);
new Xamarin.Forms.Thickness : double * double * double * double -> Xamarin.Forms.Thickness

Parameters

left
Double

The width of the left thickness.

top
Double

The height of the top thickness.

right
Double

The width of the right thickness.

bottom
Double

The height of the bottom thickness.

Applies to