Thickness 构造函数

定义

重载

Thickness(Double)

新建 Thickness 对象,该对象表示 uniformSize 大小的统一厚度。

Thickness(Double, Double)

新建 Thickness 对象,其水平厚度为 horizontalSize,垂直厚度为 verticalSize

Thickness(Double, Double, Double, Double)

lefttoprightbottom 定义的厚度创建一个新的 Thickness

Thickness(Double)

Source:
Thickness.cs
Source:
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)

Source:
Thickness.cs
Source:
Thickness.cs

新建 Thickness 对象,其水平厚度为 horizontalSize,垂直厚度为 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)

参数

horizontalSize
Double

左侧和右侧厚度的宽度。

verticalSize
Double

顶部和底部厚度的高度。

适用于

Thickness(Double, Double, Double, Double)

Source:
Thickness.cs
Source:
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

底部厚度的高度。

适用于