GridLength Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the length of elements that explicitly support Star unit types.
public value class GridLength
[System.Security.SecurityCritical]
public struct GridLength
[<System.Security.SecurityCritical>]
type GridLength = struct
Public Structure GridLength
- Inheritance
- Attributes
Remarks
This struct represents the .NET projection of the Windows Runtime (WinRT) GridLength
struct. For more information, see GridLength in the UWP API reference.
Constructors
GridLength(Double, GridUnitType) |
Initializes a new instance of the GridLength structure and specifies what kind of value it holds. |
GridLength(Double) |
Initializes a new instance of the GridLength structure using the specified absolute value in pixels. |
Properties
Auto |
Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object. |
GridUnitType |
Gets the associated GridUnitType for the GridLength. |
IsAbsolute |
Gets a value that indicates whether the GridLength holds a value that is expressed in pixels. |
IsAuto |
Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object. |
IsStar |
Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space. |
Value |
Gets a Double that represents the value of the GridLength. |
Methods
Equals(GridLength) |
Determines whether the specified GridLength is equal to the current GridLength. |
Equals(Object) |
Determines whether the specified object is equal to the current GridLength instance. |
GetHashCode() |
Gets a hash code for the GridLength. |
ToString() |
Returns a String representation of the GridLength. |
Operators
Equality(GridLength, GridLength) |
Compares two GridLength structures for equality. |
Inequality(GridLength, GridLength) |
Compares two GridLength structures to determine if they are not equal. |