Language Interface

Represents a language used for proofing or formatting in Microsoft Word.

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

Syntax

'Declaration
<GuidAttribute("0002096D-0000-0000-C000-000000000046")> _
Public Interface Language
'Usage
Dim instance As Language
[GuidAttribute("0002096D-0000-0000-C000-000000000046")]
public interface Language

Remarks

The Language object is a member of the Languages collection.

Use Languages(index) to return a single Language object, where index can be the value of the Name property, the value of the NameLocal property, one of the WdLanguageID constants, or one of the MsoLanguageID constants.

The Name property returns the name of a language, whereas the NameLocal property returns the name of a language in the language of the user.

For each language for which proofing tools are installed, you can use the ActiveGrammarDictionary, ActiveHyphenationDictionary, ActiveSpellingDictionary, and ActiveThesaurusDictionary properties to return the corresponding Dictionary object.

The writing style is the set of rules used by the grammar checker. The WritingStyleList property returns an array of strings that represent the available writing styles for the specified language.

Use the DefaultWritingStyle property to set the default writing style you want Word to use.

You can override the default writing style with the ActiveWritingStyle property. This property is applied to a specified document for text marked in a specified language.

You must have the proofing tools installed for each language you intend to check.

If you mark text as wdNoProofing, Word skips the marked text when running a spelling or grammar check.

See Also

Reference

Language Members

Microsoft.Office.Interop.Word Namespace