DataGridLength Structure
Represents the lengths of elements within the DataGrid control.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)
- C#
- VB
- F#
[TypeConverterAttribute(typeof(DataGridLengthConverter))]
public struct DataGridLength : IEquatable<DataGridLength>
<TypeConverterAttribute(GetType(DataGridLengthConverter))>
Public Structure DataGridLength
Implements IEquatable(Of DataGridLength)
[<SealedAttribute>]
[<TypeConverterAttribute(typeof(DataGridLengthConverter))>]
type DataGridLength =
struct
inherit ValueType
interface IEquatable<DataGridLength>
end
Inheritance | Object → ValueType → DataGridLength |
Implements | IEquatable(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
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 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. |