Stores custom spellings in isolated storage and can persist changes as they occur.
Definition
Namespace:Telerik.WinForms.Documents.Proofing
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class RadIsolatedStorageCustomDictionary : RadDictionary, ICustomWordDictionary, IWordDictionary, IDisposable
Inheritance: objectRadDictionaryRadIsolatedStorageCustomDictionary
Implements:
Inherited Members
Constructors
Initializes the dictionary with the default storage scope and file name, loading any existing contents.
public RadIsolatedStorageCustomDictionary()
Initializes the dictionary with the specified storage scope and file name, loading any existing contents.
public RadIsolatedStorageCustomDictionary(IsolatedStorageScope storageScope, string customDictionaryName)
The isolated-storage scope used for the dictionary file.
customDictionaryNamestringThe file name used to persist the dictionary.
Exceptions: NotSupportedExceptionThe scope is not supported by the current platform.
Initializes the dictionary with the specified storage scope and the default file name.
public RadIsolatedStorageCustomDictionary(IsolatedStorageScope storageScope)
The isolated-storage scope used for the dictionary file.
Exceptions: NotSupportedExceptionThe scope is not supported by the current platform.
Initializes the dictionary with the default storage scope and a custom file name.
public RadIsolatedStorageCustomDictionary(string customDictionaryName)
The file name used to persist the dictionary.
Fields
Gets the default file name used to persist custom spellings.
public static readonly string DefaultDictionaryName
Gets the default isolated-storage scope used by the parameterless constructor.
public static readonly IsolatedStorageScope DefaultIsolatedStorageScope
Properties
Gets or sets whether changes are written to isolated storage immediately.
public bool AutoUpdateIsolatedStorage { get; set; }
true to persist changes automatically; otherwise, call UpdateIsolatedStorage() to save them. The default value is true.
Methods
Adds the lowercased spelling if it is not already stored.
public void AddWord(string word)
The spelling to add.
Implements:
When AutoUpdateIsolatedStorage is true, a successful addition is persisted immediately. The dictionary raises DataChanged only when a new spelling is added.
Removes all stored spellings.
public void ClearWords()
Implements:
When the dictionary contains spellings and AutoUpdateIsolatedStorage is true, the cleared contents are written to storage. If it was already empty, no write or change notification occurs.
Releases the isolated-storage file handle used by this dictionary.
public void Dispose()
Implements:
Removes the lowercased spelling when it is present.
public void RemoveWord(string word)
The spelling to remove.
Implements:
When AutoUpdateIsolatedStorage is true, a successful removal is persisted immediately. The dictionary raises DataChanged only when a spelling is removed.
Writes the current custom spellings to the isolated-storage file, replacing its previous contents.
public void UpdateIsolatedStorage()