Partager via


Dictionary.LanguageID Property

Returns or sets the language for the specified object.

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

Syntax

'Declaration
Property LanguageID As WdLanguageID
    Get
    Set
'Usage
Dim instance As Dictionary
Dim value As WdLanguageID

value = instance.LanguageID

instance.LanguageID = value
WdLanguageID LanguageID { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdLanguageID

Remarks

For a custom dictionary, you must first set the LanguageSpecific property to True before specifying the LanguageID property. Custom dictionaries that are language-specific only look at text formatted for that language.

The LanguageID property can be one of the WdLanguageID constants. Some of these constants may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

See Also

Reference

Dictionary Interface

Dictionary Members

Microsoft.Office.Interop.Word Namespace