GridLengthHelper クラス

定義

GridLength 値を評価または設定するためのヘルパー メソッドを提供します。 C# コードでは、代わりに GridLength のメソッドを使用する必要があります。

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
継承
Object Platform::Object IInspectable GridLengthHelper
属性

注釈

GridLength は、Grid の行または列の使用可能な空間測定の要素を表すWindows ランタイム構造です。

GridLengthHelperは、Windows ランタイム構造体値のユーティリティ メソッドを提供することを目的としたいくつかのヘルパー クラスの 1 つです。 ユーティリティ メンバーは .NET ランタイムのサポートにより構造体で直接使用できるため、代わりに C# コードで GridLength のメンバーを使用できます。 C++ コードは、 の Value データ値 GridLengthにのみアクセスできます。 C++ 開発者の場合、C# 開発者が直接 GridLength 使用できるユーティリティ機能とほぼ同じを、 クラスの GridLengthHelper 静的な形式で使用できます。

プロパティ

Auto

特殊Autoな値に対応する静的な GridLength 値を取得します。 C# コードでは、代わりに GridLength.Auto を 使用する必要があります。

メソッド

Equals(GridLength, GridLength)

2 つの GridLength 値の値を比較します。 C# コードでは、代わりに Equality 演算子または GridLength.Equals メソッドを使用する 必要があります。

FromPixels(Double)

固定ピクセル数に基づいて新しい GridLength 値を作成します。 C# コードでは、代わりに GridLength(Double) コンストラクターを使用する必要があります。

FromValueAndType(Double, GridUnitType)

使用可能なピクセル数と GridUnitType に基づいて、新しい GridLength 値を作成します。 C# コードでは、代わりに GridLength(Double,GridUnitType) コンストラクターを使用する必要があります。

GetIsAbsolute(GridLength)

評価された GridLength が特殊な 絶対値 かどうかを返します。 C# コードでは、代わりに GridLength.IsAbsolute を使用する必要があります。

GetIsAuto(GridLength)

評価された GridLength が特殊な Auto 値かどうかを返します。 C# コードでは、代わりに GridLength.IsAuto を 使用する必要があります。

GetIsStar(GridLength)

評価された GridLength が特殊な "*" (サイズ設定star) 値であるかどうかを返します。 C# コードでは、代わりに GridLength.IsStar を 使用する必要があります。

適用対象