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.

Syntax

expression.ContextualAlternates

expression A variable that represents a Font object.

Return value

MsoTriState

Remarks

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 alternates.
msoTriStateMixed A return value indicating that the range contains some text formatted with contextual alternates and some text not formatted with contextual alternates.
msoTriStateToggle A set value that switches between msoTrue and msoFalse.
msoTrue All characters in the range are formatted with contextual alternates.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.