語言

GridLength 建構函式

定義

初始化結構的新實例 GridLength 。

多載

名稱 Description
GridLength(Double)

使用指定的絕對值(像素)初始化結構的新實例 GridLength 。

GridLength(Double, GridUnitType)

初始化結構的新實例 GridLength ,並指定其價值類型。

GridLength(Double)

使用指定的絕對值(像素)初始化結構的新實例 GridLength 。

public:
 GridLength(double pixels);
public GridLength(double pixels);
new System.Windows.GridLength : double -> System.Windows.GridLength
Public Sub New (pixels As Double)

參數

pixels
Double

裝置無關像素數(每英吋96像素)。

例外狀況

適用於

GridLength(Double, GridUnitType)

初始化結構的新實例 GridLength ,並指定其價值類型。

public:
 GridLength(double value, System::Windows::GridUnitType type);
public GridLength(double value, System.Windows.GridUnitType type);
new System.Windows.GridLength : double * System.Windows.GridUnitType -> System.Windows.GridLength
Public Sub New (value As Double, type As GridUnitType)

參數

value
Double

此實例 GridLength的初始值。

type
GridUnitType

此實例 GridUnitType所GridLength保持的 。

例外狀況

另請參閱

適用於