Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GridLength Structure

 

Represents the length of elements that explicitly support Star unit types.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

[<Sealed>]
[<TypeConverterAttribute(typeof(GridLengthConverter))>]
type GridLength = 
    struct
        interface IEquatable<GridLength>
    end

NameDescription
System_CAPS_pubmethodGridLength(Double)

Initializes a new instance of the GridLength structure using the specified absolute value in pixels.

System_CAPS_pubmethodGridLength(Double, GridUnitType)

Initializes a new instance of the GridLength structure and specifies what kind of value it holds.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAuto

Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object.

System_CAPS_pubpropertyGridUnitType

Gets the associated GridUnitType for the GridLength.

System_CAPS_pubpropertyIsAbsolute

Gets a value that indicates whether the GridLength holds a value that is expressed in pixels.

System_CAPS_pubpropertyIsAuto

Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object.

System_CAPS_pubpropertyIsStar

Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space.

System_CAPS_pubpropertyValue

Gets a Double that represents the value of the GridLength.

NameDescription
System_CAPS_pubmethodEquals(GridLength)

Determines whether the specified GridLength is equal to the current GridLength.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current GridLength instance. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Gets a hash code for the GridLength. (Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a String representation of the GridLength.(Overrides ValueType.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(GridLength, GridLength)

Compares two GridLength structures for equality.

System_CAPS_puboperatorSystem_CAPS_staticInequality(GridLength, GridLength)

Compares two GridLength structures to determine if they are not equal.

Elements such as ColumnDefinition and RowDefinition use this type to describe width and height in order to support variable distribution of available space.

<object property="doubleLength"/>
- or -
<object property="autoValue"/>

doubleLength

The element’s length, described as either a Double value that specifies a device-independent units (1/96th inch per unit) measure, or as a qualifiedDouble (see below).

autoValue

The element's length, described by either the value Auto or *. See GridUnitType for more information on the values Auto and *.

qualifiedDouble

A double value as described above for any of the measures, followed by one of the following unit declaration strings: px, in, cm, pt.

px (default) is device-independent units (1/96th inch per unit)

in is inches; 1in==96px

cm is centimeters; 1cm==(96/2.54) px

pt is points; 1pt==(96/72) px

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft