AccessText.TextDecorations プロパティ

定義

AccessText要素のテキストに追加される装飾を取得または設定します。

public:
 property System::Windows::TextDecorationCollection ^ TextDecorations { System::Windows::TextDecorationCollection ^ get(); void set(System::Windows::TextDecorationCollection ^ value); };
public System.Windows.TextDecorationCollection TextDecorations { get; set; }
member this.TextDecorations : System.Windows.TextDecorationCollection with get, set
Public Property TextDecorations As TextDecorationCollection

プロパティ値

TextDecorationsのテキストに適用されるAccessText。 既定値は null です。

注釈

テキスト装飾の詳細については、「 TextDecorations」を参照してください。

通常、このプロパティはマークアップまたはコードを使用して設定されません。

このプロパティは、スタイル設定やプログラムによる変更が可能なアクセス キー (テキストと同じテキスト色の下線) の既定の装飾を公開します。 ユーザーはアクセス キー識別子がユーザー インターフェイス (UI) で特定の外観を持つことが想定されているため、アプリケーション スタイルやカスタム テーマなどのアプリケーション全体のメカニズムを使用してこのプロパティを変更することをお勧めします。

XAML プロパティ要素の使用法

<object>
  <object.TextDecorations>
    OneOrMoreTextDecorations
  </object.TextDecorations>
</object>

XAML 値

OneOrMoreTextDecorations 1 つ以上の TextDecoration 要素。 カスタム テキスト装飾を定義する場合は、この構文を使用します。 詳細については、「 方法: テキスト装飾を作成する」を参照してください。

依存関係プロパティ情報

品目 価値
識別子フィールド TextDecorationsProperty
に設定されたメタデータ プロパティ true AffectsRender

適用対象

こちらもご覧ください