DataGridLength Struct

Summary

Represents the lengths of elements within the DataGrid control.
Namespace
Avalonia.Controls
Interfaces
Base Types
  • object
  • ValueType
graph TD Base0["ValueType"]-->Type Base1["object"]-->Base0 Interface0["IEquatable<DataGridLength>"]-.->Type Type["DataGridLength"] class Type type-node

Syntax

[TypeConverter(typeof(DataGridLengthConverter))]
public struct DataGridLength : ValueType, IEquatable<DataGridLength>

Attributes

Type Description
TypeConverter

Constructors

Name Summary
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

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 DataGridLengthUnitType
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(DataGridLength) bool
Compares this instance of DataGridLength with another instance.
Equals(object) bool
Compares this instance of DataGridLength with another object.
GetHashCode() int
Returns a unique hash code for this DataGridLength

Operators

Name Value Summary
operator !=(DataGridLength, DataGridLength) bool
operator ==(DataGridLength, DataGridLength) bool