Partager via


Dictionaries.Add Method

Returns a Dictionary object that represents a new custom spelling or conversion dictionary added to the collection of active custom spelling or conversion dictionaries.

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

Syntax

'Declaration
Function Add ( _
    FileName As String _
) As Dictionary
'Usage
Dim instance As Dictionaries
Dim FileName As String
Dim returnValue As Dictionary

returnValue = instance.Add(FileName)
Dictionary Add(
    string FileName
)

Parameters

  • FileName
    Type: System.String
    Required String. The string name of the dictionary file. If no path is specified in the string, the proofing tools path is used.

Return Value

Type: Microsoft.Office.Interop.Word.Dictionary

Remarks

If a file with the specified name doesn't exist, Microsoft Word creates one.

The Dictionaries collection includes only the active custom spelling dictionaries. Dictionary objects that are derived from the Languages collection don't have an Add method. These include the Dictionary objects returned by the ActiveSpellingDictionary, ActiveGrammarDictionary, ActiveThesaurusDictionary, and ActiveHyphenationDictionary properties.

Use the HangulHanjaDictionaries property to return the collection of custom conversion dictionaries. The HangulHanjaConversionDictionaries collection includes only the active custom conversion dictionaries.

See Also

Reference

Dictionaries Interface

Dictionaries Members

Microsoft.Office.Interop.Word Namespace