[]
        
(Showing Draft Content)

C1.Win.C1SpellChecker.UserDictionary

UserDictionary Class

Class that contains a list of additional words and methods for managing the list.

Inheritance
UserDictionary
Namespace: C1.Win.C1SpellChecker
Assembly: C1.Win.C1SpellChecker.4.8.dll
Syntax
public class UserDictionary : SpellDictionaryBase, ISpellDictionary, IComponent, IDisposable
Remarks

This class is used to store user dictionaries. It provides methods for adding and removing words, as well as saving the dictionary.

Properties

Name Description
FileName

Gets or sets the name of the file that contains the dictionary.

Words

Gets or sets an array with all the words in the user dictionary.

Methods

Name Description
AddWord(string)

Adds a word to the dictionary.

Clear()

Clears the dictionary removing all words in it.

Contains(string)

Checks whether the dictionary contains a given word.

GetFileName(bool)

Gets the fully qualified name of the file that contains the user dictionary.

Load()

Loads the dictionary from a file.

RemoveWord(string)

Removes a word from the dictionary.

Save()

Saves the dictionary back to a file.

Events

Name Description
BadWordAdded

Occurs when bad word was added to the user dictionary.