Edit

Share via


DataGridLength Struct

Definition

Represents the lengths of elements within the DataGrid control.

[Windows.Foundation.Metadata.CreateFromString(MethodName="CommunityToolkit.WinUI.UI.Controls.DataGridLength.ConvertFromString")]
public struct DataGridLength : IEquatable<CommunityToolkit.WinUI.UI.Controls.DataGridLength>
[<Windows.Foundation.Metadata.CreateFromString(MethodName="CommunityToolkit.WinUI.UI.Controls.DataGridLength.ConvertFromString")>]
type DataGridLength = struct
Public Structure DataGridLength
Implements IEquatable(Of DataGridLength)
Inheritance
DataGridLength
Attributes
Windows.Foundation.Metadata.CreateFromStringAttribute
Implements

Constructors

DataGridLength(Double)

Initializes a new instance of the DataGridLength struct based on a numerical value.

DataGridLength(Double, DataGridLengthUnitType)

Initializes a new instance of the DataGridLength struct based on a numerical value and a type.

DataGridLength(Double, DataGridLengthUnitType, Double, Double)

Initializes a new instance of the DataGridLength struct based on a numerical value and a unit.

Properties

Auto

Gets a DataGridLength structure that represents the standard automatic sizing mode.

DesiredValue

Gets the desired value of this instance.

DisplayValue

Gets the display value of this instance.

IsAbsolute

Gets a value indicating whether this DataGridLength instance holds an absolute (pixel) value.

IsAuto

Gets a value indicating whether this DataGridLength instance is automatic (not specified).

IsSizeToCells

Gets a value indicating whether this DataGridLength instance is to size to the cells of a column or row.

IsSizeToHeader

Gets a value indicating whether this DataGridLength instance is to size to the header of a column or row.

IsStar

Gets a value indicating whether 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

ConvertFrom(CultureInfo, Object)

Converts an object into a DataGridLength instance.

ConvertFromString(String)

Converts a string into a DataGridLength instance.

ConvertToString(CultureInfo, DataGridLength)

Converts a DataGridLength instance into a string.

Equals(DataGridLength)

Compares this instance of DataGridLength with another instance.

Equals(Object)

Compares this instance of DataGridLength with another object.

GetHashCode()

Returns a unique hash code for this DataGridLength

Operators

Equality(DataGridLength, DataGridLength)

Overloaded operator, compares 2 DataGridLength's.

Inequality(DataGridLength, DataGridLength)

Overloaded operator, compares 2 DataGridLength's.

Applies to