Compartilhar via


Style.LanguageID Property

Word Developer Reference

Returns or sets a WdLanguageID constant that represents the language for the specified range. Read/write.

Syntax

expression.LanguageID

expression   An expression that represents a Style 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 redefines the Title style to use the Spanish proofing tools. The new style description is then displayed in a message box.

Visual Basic for Applications
  ActiveDocument.Styles("Title").LanguageID = wdSpanish
MsgBox ActiveDocument.Styles("Title").Description

See Also