GridLengthHelper.FromPixels(Double) 方法

定义

基于固定像素数创建新的 GridLength 值。 C# 和 Microsoft Visual Basic 代码应改用 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

适用于