GridLength コンストラクター

定義

オーバーロード

GridLength(Double)

指定した絶対値 (ピクセル単位) を使用して、GridLength 構造体の新しいインスタンスを初期化します。

GridLength(Double, GridUnitType)

GridLength 構造体の新しいインスタンスを初期化して、保持する値の種類を指定します。

注釈

この構造体は、Windows ランタイム (WinRT) 構造体の .net 射影を表し GridLength ます。 詳細については、UWP API リファレンスの「 Gridlength 」を参照してください。

GridLength(Double)

指定した絶対値 (ピクセル単位) を使用して、GridLength 構造体の新しいインスタンスを初期化します。

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

パラメーター

pixels
Double

値として確定する絶対ピクセル数。

適用対象

GridLength(Double, GridUnitType)

GridLength 構造体の新しいインスタンスを初期化して、保持する値の種類を指定します。

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

パラメーター

value
Double

GridLength のこのインスタンスの初期値。

type
GridUnitType

GridUnitType のこのインスタンスに保持された GridLength

例外

value が 0 より小さいか、数値ではありません。

  • または -

type は有効な GridUnitType ではありません。

適用対象