Thickness 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Thickness(Double) |
新建 Thickness 对象,该对象表示 |
Thickness(Double, Double) |
新建 Thickness 对象,其水平厚度为 |
Thickness(Double, Double, Double, Double) |
按 |
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
按 left
、top
、right
和 bottom
定义的厚度创建一个新的 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
底部厚度的高度。