Share via


Font.ContextualAlternates Property (Publisher)

Returns or sets an MsoTriState constant that represents the state of the ContextualAlternates property on the characters in a text range. The ContextualAlternates property enables different shape choices for some characters depending on the context of the character and the design of the selected font. Read/write.

Version Information

Version Added: Publisher 2010

Syntax

expression .ContextualAlternates

expression A variable that represents a Font object.

Return Value

MsoTriState

Remarks

Note

The ContextualAlternates property has an effect only for OpenType fonts that contain contextual alternates.

The ContextualAlternates property value can be one of the following MsoTriState constants declared in the Microsoft Office type library.

Constant

Description

msoFalse

None of the characters in the range are formatted with contextual alternatives.

msoTriStateMixed

Return value indicating that the range contains some text formatted with contextual alternatives and some text not formatted with contextual alternatives.

msoTriStateToggle

Set value that switches between msoTrue and msoFalse.

msoTrue

All characters in the range are formatted with contextual alternatives.