GridLength Structure

Holds the width or height of a Grid's column and row definitions.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public struct GridLength : IEquatable<GridLength>
Inheritance
Object    ValueType    GridLength
Implements
IEquatableGridLength

Constructors

GridLength(Double) Initializes a new instance of the GridLength struct.
GridLength(Double, GridUnitType) Initializes a new instance of the GridLength struct.

Properties

Auto Gets an instance of GridLength that indicates that a row or column should auto-size to fit its content.
GridUnitType Gets the unit of the GridLength.
IsAbsolute Gets a value that indicates whether the GridLength has a GridUnitType of Pixel.
IsAuto Gets a value that indicates whether the GridLength has a GridUnitType of Auto.
IsStar Gets a value that indicates whether the GridLength has a GridUnitType of Star.
Star Gets an instance of GridLength that indicates that a row or column should fill its content.
Value Gets the length.

Methods

Equals(GridLength) Compares two GridLength structures for equality.
Equals(Object) Determines whether the GridLength is equal to the specified object.
(Overrides ValueTypeEquals(Object))
GetHashCode Gets a hash code for the GridLength.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Parse(String) Parses a string to return a GridLength.
ParseLengths(String) Parses a string to return a collection of GridLengths.
ToString Gets a string representation of the GridLength.
(Overrides ValueTypeToString)

Operators

Equality(GridLength, GridLength) Compares two GridLength structures for equality.
Inequality(GridLength, GridLength) Compares two GridLength structures for inequality.

See Also