Skip to main content

DataGridLength(Double, DataGridLengthUnitType) Constructor

Initializes to a specified value and unit.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public DataGridLength(
double value,
DataGridLengthUnitType type
)

Parameters​

  Double
The value to hold.
  DataGridLengthUnitType
The unit of value.

Remarks​

value is ignored unless type is DataGridLengthUnitType.Pixel or DataGridLengthUnitType.Star

Exceptions​

ArgumentExceptionIf value parameter is double.NaN or value parameter is double.NegativeInfinity or value parameter is double.PositiveInfinity.

See Also​

Reference​

DataGridLength Structure
DataGridLength Overload
Avalonia.Controls Namespace