Udostępnij za pośrednictwem


GridLengthHelper Class

Definition

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

public ref class GridLengthHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 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(Microsoft.UI.Xaml.WinUIContract), 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

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# code can use members of GridLength instead, because utility members are available directly on the structure due to .NET runtime support. C++ code can only access the Value data value on GridLength. For C++ developers, approximately the same utility features that a C# 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# code should use GridLength.Auto instead.

Methods

Equals(GridLength, GridLength)

Provides comparison of the values of two GridLength values. C# 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# 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# code should use the GridLength(Double,GridUnitType) constructor instead.

GetIsAbsolute(GridLength)

Returns whether the evaluated GridLength is the special Absolute value. C# code should use GridLength.IsAbsolute instead.

GetIsAuto(GridLength)

Returns whether the evaluated GridLength is the special Auto value. C# code should use GridLength.IsAuto instead.

GetIsStar(GridLength)

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

Applies to