英語で読む

次の方法で共有


Readability 列挙型

定義

バイナリ XAML (BAML) クラスまたはクラス メンバーの LocalizabilityAttribute の読みやすさの値を指定します。

C#
public enum Readability
継承
Readability

フィールド

名前 説明
Inherit 2

ターゲット値の可読性は、親ノードから継承されます。

Readable 1

ターゲット値は読み取り可能なテキストです。

Unreadable 0

ターゲット値は読み取り不可能です。

次のコード例は、ボタンに対して定義された の LocalizabilityAttribute 読みやすさの値を示しています。

XAML
<!-- Define localization attributes for the button.
      - The content is visible to the localizer and can be changed.
      - The font family property is visible to the localizer but cannot be changed. -->
  <Button
    FontFamily="Microsoft San Serif"
    Localization.Attributes=
      "$Content(Button Readable Modifiable) FontFamily(Font Readable Unmodifiable)" >
    your company name here
  </Button>

注釈

属性は LocalizabilityAttribute 、クラス、プロパティ、またはメソッドに適用できます。

ローカライズ属性の使用方法の詳細については、「 ローカライズ属性とコメント」を参照してください。

適用対象

製品 バージョン
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

こちらもご覧ください