GridLengthHelper class
TOC
Collapse the table of content
Expand the table of content

GridLengthHelper class

Provides helper methods to evaluate or set GridLength values. C# and Microsoft Visual Basic code should use methods of GridLength instead.

Inheritance

Object
  GridLengthHelper

Syntax


public ref class GridLengthHelper sealed 

Members

The GridLengthHelper class inherits from Object and IGridLengthHelper. GridLengthHelper also has these types of members:

Methods

The GridLengthHelper class has these methods. It also inherits methods from the Object class.

MethodDescription
Equals(GridLength, GridLength) Provides comparison of the values of two GridLength values. C# and Microsoft Visual Basic code should use the = operator instead.
FromPixels Creates a new GridLength value based on a fixed number of pixels. C# and Microsoft Visual Basic code should use GridLength(Double) instead.
FromValueAndType Creates a new GridLength value based on a possible number of pixels, and a GridUnitType. C# and Microsoft Visual Basic code should use GridLength(Double,GridUnitType) instead.
GetIsAbsolute Returns whether the evaluated GridLength is the special Absolute value. C# and Microsoft Visual Basic code should use IsAbsolute instead.
GetIsAuto Returns whether the evaluated GridLength is the special Auto value. C# and Microsoft Visual Basic code should use IsAuto instead.
GetIsStar Returns whether the evaluated GridLength is the special * (star sizing) value. C# and Microsoft Visual Basic code should use IsStar instead.

 

Properties

The GridLengthHelper class has these properties.

PropertyAccess typeDescription

Auto

Read-only

Gets a static GridLength value that corresponds to the special Auto value. C# and Microsoft Visual Basic code should use Auto instead.

 

Remarks

GridLength is a Windows Runtime structure that represents a factor for available-space measurements in rows or columns of a Grid.

GridLengthHelper is one of several Helper classes that are intended to provide utility methods for Windows Runtime structure values. C# and Visual Basic code can use members of GridLength instead, because utility members are available directly on the structure due to .NET Framework runtime support. C++ code can only access the Value data value on GridLength. For C++ developers, approximately the same utility features that a Visual Basic developer could use directly on GridLength are available in a static form on the GridLengthHelper class.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows::UI::Xaml

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
Grid
GridLength
Define layouts with XAML

 

 

Show:
© 2016 Microsoft