Upravit

Sdílet prostřednictvím


Dictionaries Interface

Definition

A collection of Dictionary objects that includes the active custom spelling dictionaries.

public interface class Dictionaries : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000209AC-0000-0000-C000-000000000046")]
public interface Dictionaries : System.Collections.IEnumerable
type Dictionaries = interface
    interface IEnumerable
Public Interface Dictionaries
Implements IEnumerable
Attributes
Implements

Remarks

Use the CustomDictionaries property to return the collection of currently active custom dictionaries.

Use the Add(String) method to add a new custom dictionary to the collection of active custom dictionaries. If there isn't a file with the name specified by FileName, Word creates it.

Use the ClearAll() method to unload all custom dictionaries. Note, however, that this method doesn't delete the dictionary files. After you use this method, the number of custom dictionaries in the collection is 0 (zero).

You set the custom dictionary to which new words are added by using the ActiveCustomDictionary property. If you try to set this property to a dictionary that isn't a custom dictionary, an error occurs.

The Maximum property returns the maximum number of simultaneous custom spelling dictionaries that the application can support. For Microsoft Word, this maximum is 10.

Properties

ActiveCustomDictionary

Returns or sets a Dictionary object that represents the custom dictionary to which words will be added.

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object]

Returns an individual object in a collection.

Maximum

Returns the maximum number of custom or conversion dictionaries allowed.

Parent

Returns an object that represents the parent object of the specified object.

Methods

Add(String)

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

ClearAll()

Unloads all of the custom or conversion dictionaries.

GetEnumerator()

Applies to