語言

Typography.ContextualLigatures 屬性

定義

取得或設定值,這個值會決定是否啟用內容連字。

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

屬性值

true若啟用上下文連字;否則,。 false 預設值為 true。

備註

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

情境連字的設計目的是透過提供組成連字的字元間更好的連接行為,以提升可讀性。

若 的 ContextualLigatures 值為 且 true 所選字型不支援上下文連字,則顯示字母的預設形式。

XAML 屬性使用方式

< 物件Typography.ContextualLigatures=“bool”/>

相依財產資訊

Item 價值觀
識別碼欄位 ContextualLigaturesProperty
元資料屬性設為 true AffectsMeasure、AffectsRender、Inherits

適用於

另請參閱