Typography.HistoricalForms 屬性

定義

取得或設定值,該值判斷是否啟用歷史形式。

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

屬性值

Boolean

如果啟用歷史形式則為 true,否則為 false。 預設值是 false

備註

這個屬性會取得或設定擁有 Typography 屬性的物件上的值,這是存取類別實例的唯一 Typography 方法。 此外,這個屬性支援附加屬性使用方式,以便在 XAML 中的文字包含物件上設定它。

古體形式是過去常用的印刷樣式慣例。 下列文字使用 Palatino Linotype 字型的古體形式字符顯示 "Boston, Massachusetts" 片語。

使用 OpenType 古體形式的文字
歷程記錄表單的範例

下列程式碼範例示範如何使用 屬性來定義 Pala以 Linotype 字 HistoricalForms 型的歷程記錄形式。

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

XAML Attribute Usage

<object Typography.HistoricalForms="bool"/>

相依性屬性資訊

識別碼欄位 HistoricalFormsProperty
中繼資料屬性設定為 true AffectsMeasureAffectsRenderInherits

適用於

另請參閱