语言

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 AffectsMeasure、AffectsRender、Inherits

适用于

另请参阅