Summary
Represents the lengths of elements within the
DataGrid
control.
- Namespace
- Avalonia
.Controls - Interfaces
-
- IEquatable
<DataGridLength>
- IEquatable
- Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["IEquatable<DataGridLength>"]
Type["DataGridLength"]
class Type type-node
Syntax
[TypeConverter(typeof(DataGridLengthConverter))]
public struct DataGridLength : ValueType, IEquatable<DataGridLength>
Attributes
Type | Description |
---|---|
TypeConverter |
Constructors
Name | Summary |
---|---|
DataGridLength |
Initializes a new instance of the DataGridLength class.
|
DataGridLength |
Initializes to a specified value and unit. |
DataGridLength |
Initializes to a specified value and unit. |
Properties
Name | Value | Summary |
---|---|---|
Auto | DataGridLength |
Gets a
DataGridLength structure that represents the standard automatic sizing mode.
static
|
DesiredValue | double |
Returns the desired value of this instance.
|
DisplayValue | double |
Returns the display value of this instance.
|
IsAbsolute | bool |
Returns
true if this DataGridLength instance holds
an absolute (pixel) value.
|
IsAuto | bool |
Returns
true if this DataGridLength instance is
automatic (not specified).
|
IsSizeToCells | bool |
Returns
true if this instance is to size to the cells of a column or row.
|
IsSizeToHeader | bool |
Returns
true if this instance is to size to the header of a column or row.
|
IsStar | bool |
Returns
true if this DataGridLength instance holds a weighted proportion
of available space.
|
SizeToCells | DataGridLength |
Gets a
DataGridLength structure that represents the cell-based automatic sizing mode.
static
|
SizeToHeader | DataGridLength |
Gets a
DataGridLength structure that represents the header-based automatic sizing mode.
static
|
UnitType | Data |
Gets the
DataGridLengthUnitType that represents the current sizing mode.
|
Value | double |
Gets the absolute value of the
DataGridLength in pixels.
|
Methods
Name | Value | Summary |
---|---|---|
Equals |
bool |
Compares this instance of DataGridLength with another instance.
|
Equals |
bool |
Compares this instance of DataGridLength with another object.
|
GetHashCode |
int |
Returns a unique hash code for this DataGridLength
|
Operators
Name | Value | Summary |
---|---|---|
operator != |
bool | |
operator == |
bool |