Compartilhar via


Index.IndexLanguage Property

Word Developer Reference

Returns or sets a WdLanguageID constant that represents the sorting language to use for the specified index. Read/write .

Syntax

expressionIndexLanguage

expression   Required. An expression that returns an Index object.

Remarks

Some of the WdLanguageID constants may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.

Example

This example sets the sorting language of the first index in the active document to New Zealand English.

Visual Basic for Applications
  ActiveDocument.Indexes(1).IndexLanguage = _
    wdEnglishNewZealand

See Also