DataGridLength Konstruktorer

Definition

Initierar en ny instans av DataGridLength klassen.

Överlagringar

Name Description
DataGridLength(Double)

Initierar en ny instans av DataGridLength klassen med ett absolut värde i bildpunkter.

DataGridLength(Double, DataGridLengthUnitType)

Initierar en ny instans av DataGridLength klassen med ett angivet värde och en enhet.

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Initierar en ny instans av DataGridLength klassen med det angivna värdet, enheten, önskat värde och visningsvärdet.

DataGridLength(Double)

Initierar en ny instans av DataGridLength klassen med ett absolut värde i bildpunkter.

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

Parametrar

pixels
Double

Det absoluta pixelvärdet (96 bildpunkter per tum) för att initiera längden till.

Undantag

Gäller för

DataGridLength(Double, DataGridLengthUnitType)

Initierar en ny instans av DataGridLength klassen med ett angivet värde och en enhet.

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)

Parametrar

value
Double

Den begärda storleken på elementet.

type
DataGridLengthUnitType

Den typ som används för att fastställa hur storleken på elementet beräknas.

Undantag

Gäller för

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Initierar en ny instans av DataGridLength klassen med det angivna värdet, enheten, önskat värde och visningsvärdet.

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)

Parametrar

value
Double

Den begärda storleken på elementet.

type
DataGridLengthUnitType

Den typ som används för att fastställa hur storleken på elementet beräknas.

desiredValue
Double

Den beräknade storlek som behövs för elementet.

displayValue
Double

Den allokerade storleken för elementet.

Undantag

value är NaN, NegativeInfinityeller PositiveInfinity.

-eller-

type är inte Auto, Pixel, Star, SizeToCellseller SizeToHeader.

-eller-

desiredValue är NegativeInfinity eller PositiveInfinity.

-eller-

displayValue är NegativeInfinity eller PositiveInfinity.

Gäller för