LocalizabilityAttribute.Readability LocalizabilityAttribute.Readability LocalizabilityAttribute.Readability LocalizabilityAttribute.Readability Property

定义

获取或设置本地化特性的目标值的可读性设置。Gets or sets the readability setting of the localization attribute's targeted value.

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

属性值

本地化特性的可读性设置。The readability setting of the localization attribute.

示例

下面的代码示例演示为文本块定义的本地化特性的可读性设置。The following code example shows the readability setting of localization attributes defined for a text block.

<!-- 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>

注解

下表显示了本地化特性的可读性设置。The following table shows the readability settings of the localization attribute.

可读性设置Readability setting 含义Meaning
Readable 目标值为可读文本。Targeted value is readable text.
Unreadable 目标值不可读。Targeted value is not readable.
Inherit 目标值的可读性从其父节点继承。Targeted value's readability is inherited from its parent node.

适用于

另请参阅