Skip to main content

DataGridLength(Double, DataGridLengthUnitType, Double, Double) 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,
double desiredValue,
double displayValue
)

Parameters

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

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