DataGridLength Structure

Represents the lengths of elements within the DataGrid control.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll) Version: 11.3.999
[TypeConverterAttribute(typeof(DataGridLengthConverter))]
public struct DataGridLength : IEquatable<DataGridLength>
Inheritance
Object    ValueType    DataGridLength
Implements
IEquatableDataGridLength

Properties

Auto Gets a DataGridLength structure that represents the standard automatic sizing mode.
DesiredValue Returns the desired value of this instance.
DisplayValue Returns the display value of this instance.
IsAbsolute Returns true if this DataGridLength instance holds an absolute (pixel) value.
IsAuto Returns true if this DataGridLength instance is automatic (not specified).
IsSizeToCells Returns true if this instance is to size to the cells of a column or row.
IsSizeToHeader Returns true if this instance is to size to the header of a column or row.
IsStar Returns true if this DataGridLength instance holds a weighted proportion of available space.
SizeToCells Gets a DataGridLength structure that represents the cell-based automatic sizing mode.
SizeToHeader Gets a DataGridLength structure that represents the header-based automatic sizing mode.
UnitType Gets the DataGridLengthUnitType that represents the current sizing mode.
Value Gets the absolute value of the DataGridLength in pixels.

Methods

Equals(DataGridLength) Compares this instance of DataGridLength with another instance.
Equals(Object) Compares this instance of DataGridLength with another object.
(Overrides ValueTypeEquals(Object))
GetHashCode Returns a unique hash code for this DataGridLength
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators

Equality(DataGridLength, DataGridLength) Overloaded operator, compares 2 DataGridLength's.
Inequality(DataGridLength, DataGridLength) Overloaded operator, compares 2 DataGridLength's.

See Also