共用方式為


GridLengthHelper.FromPixels(Double) 方法

定義

根據固定的圖元數建立新的 GridLength 值。 C# 程式碼應該改用 GridLength (Double) 建構函式。

public:
 static GridLength FromPixels(double pixels);
 static GridLength FromPixels(double const& pixels);
public static GridLength FromPixels(double pixels);
function fromPixels(pixels)
Public Shared Function FromPixels (pixels As Double) As GridLength

參數

pixels
Double

double

要指定的圖元高度或寬度。

傳回

建立的 GridLength

適用於