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)

Usage

Public Class anguageImplementation
    Implements Language
End Class
Dim anguageImplementation1 As New anguageImplementation()

Syntax

Public Interface Language
public interface Language
public interface class Language
public interface Language
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 Microsoft.Office.Core.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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

Language Members