Breyta

Deila með


GridLength Struct

Definition

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
GridLength
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.

Applies to

See also