GridLengthHelper クラス

定義

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

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

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

GridLength は、グリッドの行または列の使用可能な空間測定の係数を表すWindows ランタイム構造体です。

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

プロパティ

Auto

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

メソッド

Equals(GridLength, GridLength)

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

FromPixels(Double)

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

FromValueAndType(Double, GridUnitType)

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

GetIsAbsolute(GridLength)

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

GetIsAuto(GridLength)

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

GetIsStar(GridLength)

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

適用対象