共用方式為


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

初始 Bottom

傳回

建立的 Thickness

適用於