DataGridLength Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy DataGridLength.

Przeciążenia

DataGridLength(Double)

Inicjuje DataGridLength nowe wystąpienie klasy z wartością bezwzględną w pikselach.

DataGridLength(Double, DataGridLengthUnitType)

Inicjuje DataGridLength nowe wystąpienie klasy z określoną wartością i jednostką.

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Inicjuje DataGridLength nowe wystąpienie klasy z określoną wartością, jednostką, żądaną wartością i wartością wyświetlaną.

DataGridLength(Double)

Inicjuje DataGridLength nowe wystąpienie klasy z wartością bezwzględną w pikselach.

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

Parametry

pixels
Double

Wartość pikseli bezwzględnych (96 pikseli na cal) w celu zainicjowania długości.

Wyjątki

Dotyczy

DataGridLength(Double, DataGridLengthUnitType)

Inicjuje DataGridLength nowe wystąpienie klasy z określoną wartością i jednostką.

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)

Parametry

value
Double

Żądany rozmiar elementu.

type
DataGridLengthUnitType

Typ używany do określania sposobu obliczania rozmiaru elementu.

Wyjątki

Dotyczy

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Inicjuje DataGridLength nowe wystąpienie klasy z określoną wartością, jednostką, żądaną wartością i wartością wyświetlaną.

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)

Parametry

value
Double

Żądany rozmiar elementu.

type
DataGridLengthUnitType

Typ używany do określania sposobu obliczania rozmiaru elementu.

desiredValue
Double

Obliczony rozmiar wymagany dla elementu.

displayValue
Double

Przydzielony rozmiar elementu.

Wyjątki

value to NaN, NegativeInfinitylub PositiveInfinity.

-lub-

typeto nie Auto, , StarPixel, , SizeToCellslub SizeToHeader.

-lub-

desiredValue to NegativeInfinity lub PositiveInfinity.

-lub-

displayValue to NegativeInfinity lub PositiveInfinity.

Dotyczy