ThicknessHelper クラス

定義

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

public ref class ThicknessHelper 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 ThicknessHelper 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 ThicknessHelper
Public NotInheritable Class ThicknessHelper
継承
Object Platform::Object IInspectable ThicknessHelper
属性

Windows の要件

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

注釈

太さは、四角形の UI 要素の外側 (余白) または内側 (パディング) レンダリング ディメンションに適用されるピクセル メジャーを表すWindows ランタイム構造体です。 たとえば、 Border.BorderThickness では Thickness 値が使用されます。

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

メソッド

FromLengths(Double, Double, Double, Double)

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

FromUniformLength(Double)

すべての要素値に対して均一な値を使用して、新しい Thickness 値を作成します。 C# と Microsoft Visual Basic のコードでは、代わりに Thickness(Double) コンストラクターを使用する必要があります。

適用対象

こちらもご覧ください