Skip to main content

DataGridLength Structure

Represents the lengths of elements within the DataGrid control.

Definition

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

[TypeConverterAttribute(typeof(DataGridLengthConverter))]
public struct DataGridLength : IEquatable<DataGridLength>
View Source
InheritanceObjectValueType → DataGridLength
ImplementsIEquatable(DataGridLength)

Constructors

DataGridLength(Double)Initializes a new instance of the DataGridLength class.
DataGridLength(Double, DataGridLengthUnitType)Initializes to a specified value and unit.
DataGridLength(Double, DataGridLengthUnitType, Double, Double)Initializes to a specified value and unit.

Properties

AutoGets a DataGridLength structure that represents the standard automatic sizing mode.
DesiredValueReturns the desired value of this instance.
DisplayValueReturns the display value of this instance.
IsAbsoluteReturns true if this DataGridLength instance holds an absolute (pixel) value.
IsAutoReturns true if this DataGridLength instance is automatic (not specified).
IsSizeToCellsReturns true if this instance is to size to the cells of a column or row.
IsSizeToHeaderReturns true if this instance is to size to the header of a column or row.
IsStarReturns true if this DataGridLength instance holds a weighted proportion of available space.
SizeToCellsGets a DataGridLength structure that represents the cell-based automatic sizing mode.
SizeToHeaderGets a DataGridLength structure that represents the header-based automatic sizing mode.
UnitTypeGets the DataGridLengthUnitType that represents the current sizing mode.
ValueGets 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 ValueType.Equals(Object))
GetHashCode()Returns a unique hash code for this DataGridLength
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns 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

Reference

Avalonia.Controls Namespace