共用方式為


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

定義

根據專案值建立 Thickness 值。 C# 程式碼應該改用 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

適用於