LocalizabilityAttribute.Readability 属性

定义

获取或设置本地化特性的目标值的可读性设置。

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

属性值

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 目标值的可读性继承自其父节点。

适用于

另请参阅