LocalizabilityAttribute.Readability 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定當地語系化屬性之目標值的可讀性設定。
public:
property System::Windows::Readability Readability { System::Windows::Readability get(); void set(System::Windows::Readability value); };
public System.Windows.Readability Readability { get; set; }
member this.Readability : System.Windows.Readability with get, set
Public Property Readability As Readability
屬性值
當地語系化屬性的可讀性設定。
範例
下列程式碼範例顯示針對文字區塊定義的當地語系化屬性可讀性設定。
<!-- 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 | 目標值的可讀性繼承自其父節點。 |