Share via


Thickness Constructors

Definition

Overloads

Thickness(Double)

Creates a new Thickness with the same uniform size on all edges.

Thickness(Double, Double)

Creates a new Thickness with specified horizontal and vertical sizes.

Thickness(Double, Double, Double, Double)

Creates a new Thickness with individual edge thicknesses.

Thickness(Double)

Source:
Thickness.cs
Source:
Thickness.cs
Source:
Thickness.cs

Creates a new Thickness with the same uniform size on all edges.

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 thickness for all edges.

Applies to

Thickness(Double, Double)

Source:
Thickness.cs
Source:
Thickness.cs
Source:
Thickness.cs

Creates a new Thickness with specified horizontal and vertical sizes.

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

Thickness for left and right edges.

verticalSize
Double

Thickness for top and bottom edges.

Applies to

Thickness(Double, Double, Double, Double)

Source:
Thickness.cs
Source:
Thickness.cs
Source:
Thickness.cs

Creates a new Thickness with individual edge thicknesses.

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

Thickness of the left edge.

top
Double

Thickness of the top edge.

right
Double

Thickness of the right edge.

bottom
Double

Thickness of the bottom edge.

Applies to