LocalizabilityAttribute.Readability 屬性

定義

取得或設定當地語系化屬性之目標值的可讀性設定。

C#
public System.Windows.Readability Readability { get; set; }

屬性值

Readability

當地語系化屬性的可讀性設定。

範例

下列程式碼範例顯示針對文字區塊定義的當地語系化屬性可讀性設定。

XAML
<!-- Define localization attributes and comments for the text block.
    - The content is visible to the localizer and can be changed.
    - The font size property is visible to the localizer and can be changed.
    - The comment specifies that the trademark font size should be used. -->
<TextBlock
  FontSize="14"
  Localization.Attributes=
    "$Content(Text Readable Modifiable) FontSize(Font Readable Modifiable)"
  Localization.Comments=
    "$Content(Trademark) FontSize(Trademark font size)" >
  your company name here
</TextBlock>

備註

下表顯示當地語系化屬性的可讀性設定。

可讀性設定 意義
Readable 目標值為可讀取的文字。
Unreadable 目標值無法讀取。
Inherit 目標值的可讀性繼承自其父節點。

適用於

產品 版本
.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
Windows Desktop 3.0, 3.1, 5, 6, 7

另請參閱