LocalizabilityAttribute.Readability 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定當地語系化屬性之目標值的可讀性設定。
public:
property System::Windows::Readability Readability { System::Windows::Readability get(); void set(System::Windows::Readability value); };
C#
public System.Windows.Readability Readability { get; set; }
member this.Readability : System.Windows.Readability with get, set
Public Property Readability As 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 |