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)

Usage

Dim FileName As String
Dim returnValue As Dictionary
Dim dictionaries1 As Dictionaries
returnValue = dictionaries1.Add(FileName)

Syntax

Function Add( _
    <InAttribute()> ByVal FileName As String _
) As Dictionary
Dictionary Add(
    [In] string FileName
);
public: Dictionary^ Add(
    String^ FileName
);
public Dictionary Add(
    /*in*/System.String FileName
);
function Add(
     FileName : String
) : Dictionary;

Parameters

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

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Dictionaries Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Dictionaries Members