ThicknessHelper.FromLengths(Double, Double, Double, Double) 方法

定义

基于元素值创建 Thickness 值。 C# 和 Microsoft Visual Basic 代码应改用 Thickness (Double、Double、Double、Double) 构造函数。

public:
 static Thickness FromLengths(double left, double top, double right, double bottom);
 static Thickness FromLengths(double const& left, double const& top, double const& right, double const& bottom);
public static Thickness FromLengths(double left, double top, double right, double bottom);
function fromLengths(left, top, right, bottom)
Public Shared Function FromLengths (left As Double, top As Double, right As Double, bottom As Double) As Thickness

参数

left
Double

double

初始 的 Left

top
Double

double

初始 的 Top

right
Double

double

初始 Right

bottom
Double

double

初始 底部

返回

创建的 粗细

适用于