Język

DataGridLength Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy DataGridLength.

Przeciążenia

Nazwa Opis
DataGridLength(Double)

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

DataGridLength(Double, DataGridLengthUnitType)

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

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

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

DataGridLength(Double)

Inicjuje nowe wystąpienie DataGridLength 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ść bezwzględnego piksela (96 pikseli na cal), aby zainicjować długość do.

Wyjątki

Dotyczy

DataGridLength(Double, DataGridLengthUnitType)

Inicjuje nowe wystąpienie DataGridLength 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 nowe wystąpienie DataGridLength 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 —

typenie Autojest , , Pixel, StarSizeToCells, lub SizeToHeader.

— lub —

desiredValue jest lub NegativeInfinityPositiveInfinity.

— lub —

displayValue jest lub NegativeInfinityPositiveInfinity.

Dotyczy