Επεξεργασία

Κοινή χρήση μέσω


Typography.HistoricalForms Property

Definition

Gets or sets a value that determines whether historical forms are enabled.

public:
 property bool HistoricalForms { bool get(); void set(bool value); };
public bool HistoricalForms { get; set; }
member this.HistoricalForms : bool with get, set
Public Property HistoricalForms As Boolean

Property Value

true if historical forms are enabled; otherwise, false. The default value is false.

Remarks

This property gets or sets a value on the object that owns a Typography property, which is the only way to access a Typography class instance. In addition, this property supports an attached property usage so that it can be set on text-containing objects in XAML.

Historical forms are typographic conventions that were common in the past. The following text displays the phrase, "Boston, Massachusetts", using an historical form of glyphs for the Palatino Linotype font.

Text using OpenType historical forms
Example of historical forms

The following code example shows how to define historical forms for the Palatino Linotype font, using the HistoricalForms property.

<Paragraph FontFamily="Palatino Linotype">
  <Run Typography.HistoricalForms="True">Boston, Massachusetts</Run>
</Paragraph>

XAML Attribute Usage

<object Typography.HistoricalForms="bool"/>

Dependency Property Information

Identifier field HistoricalFormsProperty
Metadata properties set to true AffectsMeasure, AffectsRender, Inherits

Applies to

See also