Table of Contents

Struct GridLength

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GridLength is the type used for various length-like properties in the system, that explicitely support Star unit type. For example, "Width", "Height" properties of ColumnDefinition and RowDefinition used by Grid.

[TypeConverter(typeof(GridLengthConverter))]
public struct GridLength : IEquatable<GridLength>
Implements

Constructors

GridLength(double)

Constructor, initializes the GridLength as absolute value in pixels.

GridLength(double, GridUnitType)

Constructor, initializes the GridLength and specifies what kind of value it will hold.

Properties

Auto

Returns initialized GridLength value with GridUnitType equal to Auto.

GridUnitType

Returns unit type of this GridLength instance.

IsAbsolute

Returns true if this GridLength instance holds an absolute (pixel) value.

IsAuto

Returns true if this GridLength instance is automatic (not specified).

IsStar

Returns true if this GridLength instance holds weighted propertion of available space.

Star

Returns initialized GridLength value with GridUnitType equal to Star.

Value

Returns value part of this GridLength instance.

Methods

Equals(GridLength)

Compares this instance of GridLength with another instance.

Equals(object)

Compares this instance of GridLength with another object.

GetHashCode()

GetHashCode()

ToString()

Returns the string representation of this object.

Operators

operator ==(GridLength, GridLength)

Overloaded operator, compares 2 GridLength's.

operator !=(GridLength, GridLength)

Overloaded operator, compares 2 GridLength's.