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”/>

依赖项属性信息

标识符字段 ContextualLigaturesProperty
元数据属性设置为 true AffectsMeasure, AffectsRender, Inherits

适用于

另请参阅