DataGridLength Constructores

Definición

Inicializa una nueva instancia de la clase DataGridLength.

Sobrecargas

DataGridLength(Double)

Inicializa una nueva instancia de la clase DataGridLength con un valor absoluto en píxeles.

DataGridLength(Double, DataGridLengthUnitType)

Inicializa una nueva instancia de la clase DataGridLength con una unidad y un valor especificado.

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Inicializa una nueva instancia de la clase DataGridLength con el valor, la unidad, el valor deseado y el valor para mostrar.

DataGridLength(Double)

Inicializa una nueva instancia de la clase DataGridLength con un valor absoluto en píxeles.

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

Parámetros

pixels
Double

Valor de píxeles absoluto (96 píxeles por pulgada) en el que inicializar la longitud.

Excepciones

Se aplica a

DataGridLength(Double, DataGridLengthUnitType)

Inicializa una nueva instancia de la clase DataGridLength con una unidad y un valor especificado.

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)

Parámetros

value
Double

El tamaño solicitado del elemento.

type
DataGridLengthUnitType

El tipo que se utiliza para determinar cómo se calcula el tamaño del elemento.

Excepciones

Se aplica a

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Inicializa una nueva instancia de la clase DataGridLength con el valor, la unidad, el valor deseado y el valor para mostrar.

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)

Parámetros

value
Double

El tamaño solicitado del elemento.

type
DataGridLengthUnitType

El tipo que se utiliza para determinar cómo se calcula el tamaño del elemento.

desiredValue
Double

El tamaño calculado que se precisa para el elemento.

displayValue
Double

El tamaño asignado para el elemento.

Excepciones

value es NaN, NegativeInfinity o PositiveInfinity.

o bien

type no es Auto, Pixel, Star, SizeToCells ni SizeToHeader.

o bien

desiredValue es NegativeInfinity o PositiveInfinity.

o bien

displayValue es NegativeInfinity o PositiveInfinity.

Se aplica a