DataGridLength DataGridLength DataGridLength DataGridLength Constructors

Definition

Overloads

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

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)

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)

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)

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)

Parameters

pixels
Double Double Double Double

The absolute pixel value (96 pixels-per-inch) to initialize the length to.

Exceptions

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

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)

Parameters

value
Double Double Double Double

The requested size of the element.

type
DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType

The type that is used to determine how the size of the element is calculated.

Exceptions

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

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)

Parameters

value
Double Double Double Double

The requested size of the element.

type
DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType DataGridLengthUnitType

The type that is used to determine how the size of the element is calculated.

desiredValue
Double Double Double Double

The calculated size needed for the element.

displayValue
Double Double Double Double

The allocated size for the element.

Exceptions

Applies to