Stores custom words in isolated storage and indexes them for exact and phonetic lookup.
Definition
Namespace:Telerik.WinControls.SpellChecker.Proofing
Assembly:Telerik.WinControls.SpellChecker.dll
Syntax:
public class RadIsolatedStorageCustomDictionary : WordDictionary, ICustomWordDictionary, IWordDictionary, IDisposable
Inheritance: objectWordDictionaryRadIsolatedStorageCustomDictionary
Implements:
Inherited Members
Constructors
Creates a dictionary in the default isolated-storage scope using DefaultDictionaryName. Existing words are loaded from that file when it is present.
public RadIsolatedStorageCustomDictionary()
Creates a dictionary using the specified isolated-storage scope and file name, then loads existing words from that file.
public RadIsolatedStorageCustomDictionary(IsolatedStorageScope storageScope, string customDictionaryName)
The isolated-storage scope to use.
customDictionaryNamestringThe file name used to store the custom words.
Exceptions: NotSupportedExceptionstorageScope is not Application.
Creates a dictionary in the specified isolated-storage scope using DefaultDictionaryName.
public RadIsolatedStorageCustomDictionary(IsolatedStorageScope storageScope)
The isolated-storage scope to use.
Exceptions: NotSupportedExceptionstorageScope is not Application.
Fields
Gets the file name used by the parameterless constructor for custom words.
public static readonly string DefaultDictionaryName
Gets the storage scope used by the parameterless constructor.
public static readonly IsolatedStorageScope DefaultIsolatedStorageScope
Properties
Gets or sets whether successful word additions, removals, and clears are automatically written to isolated storage. The constructors enable this by default; when disabled, call UpdateIsolatedStorage() to persist changes.
public bool AutoUpdateIsolatedStorage { get; set; }
Methods
Adds the lowercase spelling when it is not already present. When automatic updates are enabled, persists the change and raises DataChanged; otherwise the change remains in memory without that notification.
Removes all words. If the dictionary was not empty, optionally persists the change and raises DataChanged.
public void ClearWords()
Releases the isolated-storage file handle used by this dictionary.
public void Dispose()
Implements:
Loads non-empty lines from the configured isolated-storage file into the in-memory dictionary when the file exists.
public void ReadIsolatedStorage()
Removes the lowercase spelling when present, persists the change when automatic updates are enabled, and raises DataChanged.
Recreates the configured isolated-storage file and writes the current custom words, one word per line.
public void UpdateIsolatedStorage()