Share via


_Font.ContextualAlternates Property

Specifies whether or not contextual alternates are enabled for the specified font.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property ContextualAlternates As Integer
    Get
    Set
'Usage
Dim instance As _Font
Dim value As Integer

value = instance.ContextualAlternates

instance.ContextualAlternates = value
int ContextualAlternates { get; set; }

Property Value

Type: System.Int32
A Int32 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).

See Also

Reference

_Font Interface

_Font Members

Microsoft.Office.Interop.Word Namespace