DataGridLength DataGridLength DataGridLength DataGridLength Constructors

Definizione

Overload

DataGridLength(Double) DataGridLength(Double) DataGridLength(Double) DataGridLength(Double)

Inizializza un'istanza nuova della classe DataGridLength con un valore assoluto in pixel.Initializes a new instance of the DataGridLength class with an absolute value in pixels.

DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType)

Inizializza una nuova istanza della classe DataGridLength con un valore e un'unità specificati.Initializes a new instance of the DataGridLength class with a specified value and unit.

DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Inizializza una nuova istanza della classe DataGridLength con il valore, l'unità, il valore desiderato e il valore visualizzato specificati.Initializes a new instance of the DataGridLength class with the specified value, unit, desired value, and display value.

DataGridLength(Double) DataGridLength(Double) DataGridLength(Double) DataGridLength(Double)

Inizializza un'istanza nuova della classe DataGridLength con un valore assoluto in pixel.Initializes a new instance of the DataGridLength class with an absolute value in pixels.

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

Parametri

pixels
Double Double Double Double

Valore assoluto in pixel, vale a dire 96 ppi, per inizializzare la lunghezza.The absolute pixel value (96 pixels-per-inch) to initialize the length to.

Eccezioni

DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType)

Inizializza una nuova istanza della classe DataGridLength con un valore e un'unità specificati.Initializes a new instance of the DataGridLength class with a specified value and unit.

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)

Parametri

value
Double Double Double Double

Dimensioni richieste dell'elemento.The requested size of the element.

type
DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType

Tipo utilizzato per determinare il modo in cui vengono calcolate le dimensioni dell'elemento.The type that is used to determine how the size of the element is calculated.

Eccezioni

DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Inizializza una nuova istanza della classe DataGridLength con il valore, l'unità, il valore desiderato e il valore visualizzato specificati.Initializes a new instance of the DataGridLength class with the specified value, unit, desired value, and display value.

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)

Parametri

value
Double Double Double Double

Dimensioni richieste dell'elemento.The requested size of the element.

type
DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType

Tipo utilizzato per determinare il modo in cui vengono calcolate le dimensioni dell'elemento.The type that is used to determine how the size of the element is calculated.

desiredValue
Double Double Double Double

Dimensioni calcolate necessarie per l'elemento.The calculated size needed for the element.

displayValue
Double Double Double Double

Dimensioni allocate per l'elemento.The allocated size for the element.

Eccezioni

value è NaN, NegativeInfinity o PositiveInfinity.value is NaN, NegativeInfinity, or PositiveInfinity.

In alternativa-or- type non è Auto, Pixel, Star, SizeToCells o SizeToHeader.type is not Auto, Pixel, Star, SizeToCells, or SizeToHeader.

In alternativa-or- desiredValue è NegativeInfinity o PositiveInfinity.desiredValue is NegativeInfinity or PositiveInfinity.

In alternativa-or- displayValue è NegativeInfinity o PositiveInfinity.displayValue is NegativeInfinity or PositiveInfinity.

Si applica a