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)
- C#
- VB
- F#
public DataGridLength(
double value,
DataGridLengthUnitType type,
double desiredValue,
double displayValue
)
Public Sub New (
value As Double,
type As DataGridLengthUnitType,
desiredValue As Double,
displayValue As Double
)
new :
value : float *
type : DataGridLengthUnitType *
desiredValue : float *
displayValue : float -> DataGridLength
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
ArgumentException | If 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