Share via


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)

Source:
Thickness.cs
Source:
Thickness.cs

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

public:
 Thickness(double uniformSize);
public Thickness (double uniformSize);
new Microsoft.Maui.Thickness : double -> Microsoft.Maui.Thickness
Public Sub New (uniformSize As Double)

Parameters

uniformSize
Double

The uniform size of all edges in the new thickness.

Applies to

Thickness(Double, Double)

Source:
Thickness.cs
Source:
Thickness.cs

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

public:
 Thickness(double horizontalSize, double verticalSize);
public Thickness (double horizontalSize, double verticalSize);
new Microsoft.Maui.Thickness : double * double -> Microsoft.Maui.Thickness
Public Sub New (horizontalSize As Double, verticalSize As Double)

Parameters

horizontalSize
Double

The width of the left and right thicknesses.

verticalSize
Double

The height of the top and bottom thicknesses.

Applies to

Thickness(Double, Double, Double, Double)

Source:
Thickness.cs
Source:
Thickness.cs

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

public:
 Thickness(double left, double top, double right, double bottom);
public Thickness (double left, double top, double right, double bottom);
new Microsoft.Maui.Thickness : double * double * double * double -> Microsoft.Maui.Thickness
Public Sub New (left As Double, top As Double, right As Double, bottom As Double)

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