Summary
Holds the width or height of a
Grid
's column and row definitions.
- Namespace
- Avalonia
.Controls - Interfaces
-
- IEquatable
<GridLength>
- IEquatable
- Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["IEquatable<GridLength>"]
Type["GridLength"]
class Type type-node
Syntax
public struct GridLength : ValueType, IEquatable<GridLength>
Constructors
Name | Summary |
---|---|
GridLength |
Initializes a new instance of the GridLength struct.
|
GridLength |
Initializes a new instance of the GridLength struct.
|
Properties
Name | Value | Summary |
---|---|---|
Auto | GridLength |
Gets an instance of
GridLength that indicates that a row or column should
auto-size to fit its content.
static
|
GridUnitType | GridUnitType |
Gets the unit of the
GridLength .
|
IsAbsolute | bool |
Gets a value that indicates whether the
GridLength has a GridUnitType of Pixel.
|
IsAuto | bool |
Gets a value that indicates whether the
GridLength has a GridUnitType of Auto.
|
IsStar | bool |
Gets a value that indicates whether the
GridLength has a GridUnitType of Star.
|
Value | double |
Gets the length.
|
Methods
Name | Value | Summary |
---|---|---|
Equals |
bool |
Compares two GridLength structures for equality.
|
Equals |
bool |
Determines whether the
GridLength is equal to the specified object.
|
GetHashCode |
int |
Gets a hash code for the GridLength.
|
Parse |
GridLength |
Parses a string to return a
GridLength .
static
|
ParseLengths |
IEnumerable |
Parses a string to return a collection of
GridLength s.
static
|
ToString |
string |
Gets a string representation of the
GridLength .
|
Operators
Name | Value | Summary |
---|---|---|
operator != |
bool | |
operator == |
bool |