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 属性用法

< objectTypography.ContextualLigatures=“bool”/>

Dependency 属性信息

标识符字段 ContextualLigaturesProperty
设置为 true 的元数据属性 AffectsMeasureAffectsRenderInherits

适用于

另请参阅