共用方式為


Thickness 建構函式

定義

多載

Thickness(Double)

建立新的 Thickness 物件,代表大小 uniformSize 的統一粗細。

Thickness(Double, Double)

建立水平粗細為 horizontalSize,垂直粗細為 verticalSize 的新 Thickness 物件。

Thickness(Double, Double, Double, Double)

使用 lefttoprightbottom 定義的粗細,建立新 Thickness 物件。

Thickness(Double)

來源:
Thickness.cs
來源:
Thickness.cs

建立新的 Thickness 物件,代表大小 uniformSize 的統一粗細。

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

參數

uniformSize
Double

新粗細中所有邊緣的統一大小。

適用於

Thickness(Double, Double)

來源:
Thickness.cs
來源:
Thickness.cs

建立水平粗細為 horizontalSize,垂直粗細為 verticalSize 的新 Thickness 物件。

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)

參數

horizontalSize
Double

左側和右側的粗細寬度。

verticalSize
Double

頂部與底部的粗細高度。

適用於

Thickness(Double, Double, Double, Double)

來源:
Thickness.cs
來源:
Thickness.cs

使用 lefttoprightbottom 定義的粗細,建立新 Thickness 物件。

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)

參數

left
Double

左側粗細的寬度。

top
Double

頂部粗細的高度。

right
Double

右側粗細的寬度。

bottom
Double

底部粗細的高度。

適用於