GridLengthHelper GridLengthHelper GridLengthHelper GridLengthHelper Class

Definition

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

public : sealed class GridLengthHelper : IGridLengthHelper
struct winrt::Windows::UI::Xaml::GridLengthHelper : IGridLengthHelper
public sealed class GridLengthHelper : IGridLengthHelper
Public NotInheritable Class GridLengthHelper Implements IGridLengthHelper
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 Microsoft 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 Microsoft Visual Basic developer could use directly on GridLength are available in a static form on the GridLengthHelper class.

Properties

Auto Auto Auto Auto

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

Methods

Equals(GridLength, GridLength) Equals(GridLength, GridLength) Equals(GridLength, GridLength) Equals(GridLength, GridLength)

Provides comparison of the values of two GridLength values. C# and Microsoft Visual Basic code should use the = operator instead.

FromPixels(Double) FromPixels(Double) FromPixels(Double) FromPixels(Double)

Creates a new GridLength value based on a fixed number of pixels. C# and Microsoft Visual Basic code should use GridLength(Double) instead.

FromValueAndType(Double, GridUnitType) FromValueAndType(Double, GridUnitType) FromValueAndType(Double, GridUnitType) FromValueAndType(Double, GridUnitType)

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(GridLength) GetIsAbsolute(GridLength) GetIsAbsolute(GridLength) GetIsAbsolute(GridLength)

Returns whether the evaluated GridLength is the special "Absolute" value. C# and Microsoft Visual Basic code should use IsAbsolute instead.

GetIsAuto(GridLength) GetIsAuto(GridLength) GetIsAuto(GridLength) GetIsAuto(GridLength)

Returns whether the evaluated GridLength is the special "Auto" value. C# and Microsoft Visual Basic code should use IsAuto instead.

GetIsStar(GridLength) GetIsStar(GridLength) GetIsStar(GridLength) GetIsStar(GridLength)

Returns whether the evaluated GridLength is the special "*" (star sizing) value. C# and Microsoft Visual Basic code should use IsStar instead.

See Also