Share via


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 ref class GridLengthHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GridLengthHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GridLengthHelper
Public NotInheritable Class GridLengthHelper
Inheritance
Object Platform::Object IInspectable GridLengthHelper
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

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

Methods

Equals(GridLength, GridLength)

Provides comparison of the values of two GridLength values. C# and Microsoft Visual Basic code should use the Equality operator or GridLength.Equals method instead.

FromPixels(Double)

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

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 the GridLength(Double,GridUnitType) constructor instead.

GetIsAbsolute(GridLength)

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

GetIsAuto(GridLength)

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

GetIsStar(GridLength)

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

Applies to