Share via


Font.ContextualAlternates Property (Word)

Specifies whether or not contextual alternates are enabled for the specified font. Read/write Long.

Version Information

Version Added: Word 2010

Syntax

expression .ContextualAlternates

expression An expression that returns a Font object.

Remarks

Contextual alternates are ligatures that are applied to individual characters based on the letters around them (their context). Contextual alternates can also be applied to entire words in certain contexts, for example, words frequently used in titles (such as "of" and "the"). When contextual alternates are enabled for a font, they are used instead of the standard ligatures in those contexts defined by the font designer.

Setting this property has the same effect as selecting the check box next to Use Contextual Alternates (in the OpenType Features group, Advanced tab, on the Font dialog in Word 2010).

Example

The following code example enables contextual alternates for the font in the active document.

ActiveDocument.Range.Font.ContextualAlternates = True

See Also

Concepts

Font Object

Font Object Members