DataGridLength コンストラクター

定義

DataGridLength クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
DataGridLength(Double)

DataGridLength クラスの新しいインスタンスを、絶対値 (ピクセル単位) で初期化します。

DataGridLength(Double, DataGridLengthUnitType)

指定した値と単位を使用して、 DataGridLength クラスの新しいインスタンスを初期化します。

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

指定した値、単位、目的の値、および表示値を使用して、 DataGridLength クラスの新しいインスタンスを初期化します。

DataGridLength(Double)

DataGridLength クラスの新しいインスタンスを、絶対値 (ピクセル単位) で初期化します。

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

パラメーター

pixels
Double

長さを初期化する絶対ピクセル値 (1 インチあたり 96 ピクセル)。

例外

pixelsNaNNegativeInfinity、または PositiveInfinityです。

適用対象

DataGridLength(Double, DataGridLengthUnitType)

指定した値と単位を使用して、 DataGridLength クラスの新しいインスタンスを初期化します。

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

パラメーター

value
Double

要素の要求されたサイズ。

type
DataGridLengthUnitType

要素のサイズの計算方法を決定するために使用される型。

例外

valueNaNNegativeInfinity、または PositiveInfinityです。

-又は-

type は、 AutoPixelStarSizeToCells、または SizeToHeaderではありません。

適用対象

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

指定した値、単位、目的の値、および表示値を使用して、 DataGridLength クラスの新しいインスタンスを初期化します。

public:
 DataGridLength(double value, System::Windows::Controls::DataGridLengthUnitType type, double desiredValue, double displayValue);
public DataGridLength(double value, System.Windows.Controls.DataGridLengthUnitType type, double desiredValue, double displayValue);
new System.Windows.Controls.DataGridLength : double * System.Windows.Controls.DataGridLengthUnitType * double * double -> System.Windows.Controls.DataGridLength
Public Sub New (value As Double, type As DataGridLengthUnitType, desiredValue As Double, displayValue As Double)

パラメーター

value
Double

要素の要求されたサイズ。

type
DataGridLengthUnitType

要素のサイズの計算方法を決定するために使用される型。

desiredValue
Double

要素に必要な計算サイズ。

displayValue
Double

要素に割り当てられたサイズ。

例外

valueNaNNegativeInfinity、または PositiveInfinityです。

-又は-

type は、 AutoPixelStarSizeToCells、または SizeToHeaderではありません。

-又は-

desiredValueNegativeInfinity または PositiveInfinity

-又は-

displayValueNegativeInfinity または PositiveInfinity

適用対象