Číst v angličtině Upravit

Sdílet prostřednictvím


LocalizabilityAttribute.Readability Property

Definition

Gets or sets the readability setting of the localization attribute's targeted value.

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

Property Value

The readability setting of the localization attribute.

Examples

The following code example shows the readability setting of localization attributes defined for a text block.

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>

Remarks

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.

Applies to

Produkt Verze
.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, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also