Edytuj

Udostępnij za pośrednictwem


Dictionary Interface

Definition

Represents a dictionary.

public interface class Dictionary
[System.Runtime.InteropServices.Guid("000209AD-0000-0000-C000-000000000046")]
public interface Dictionary
type Dictionary = interface
Public Interface Dictionary
Attributes

Remarks

Dictionary objects that represent custom dictionaries are members of the Dictionaries collection. Other dictionary objects are returned by properties of the Language collection; these include the ActiveSpellingDictionary, ActiveGrammarDictionary, ActiveThesaurusDictionary, and ActiveHyphenationDictionary properties. You can use these properties for each language for which proofing tools are installed.

Use CustomDictionaries(index), where index is an index number or the string name for the dictionary, to return a single Dictionary object that represents a custom dictionary.

Use the ActiveCustomDictionary property to set the custom spelling dictionary in the collection to which new words are added. If you try to set this property to a dictionary that's not a custom dictionary, an error occurs.

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

Use the Name and Path property to locate any of the dictionaries.

Use the LanguageSpecific property to determine whether the specified custom dictionary can have a specific language assigned to it with the LanguageID property. If the dictionary is language specific, it will verify only text that's formatted for the specified language.

The ReadOnly property returns True for .lex files (built-in proofing dictionaries) and False for .dic files (custom spelling dictionaries).

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Creator

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

LanguageID

Returns or sets the language for the specified object.

LanguageSpecific

True if the custom dictionary is to be used only with text formatted for a specific language.

Name

Returns or sets the name of the specified object.

Parent

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

Path

Returns the disk or Web path to the specified object.

ReadOnly

True if the specified dictionary cannot be changed.

Type

Returns the dictionary type.

Methods

Delete()

Deletes the specified object.

Applies to