ClassRadDictionary
Represents a specialized dictionary that provides advanced functionality for RadSpellChecker, including support for localization and efficient data retrieval.
Definition
Namespace:Telerik.Windows.Documents.Proofing
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class RadDictionary : IWordDictionary
Inheritance: objectRadDictionary
Derived Classes:
Implements:
Constructors
RadDictionary()
Declaration
public RadDictionary()
Fields
metaphoneByWord
Declaration
protected Dictionary<string, Tuple<string, string>> metaphoneByWord
Field Value
wordsByMetaphone
Declaration
protected Dictionary<string, List<string>> wordsByMetaphone
Field Value
wordsByMetaphoneAlternate
Declaration
protected Dictionary<string, List<string>> wordsByMetaphoneAlternate
Field Value
Properties
Words
Represents a collection of words used for proofing, enabling functionalities such as spell checking and grammar checking.
Declaration
public IEnumerable<string> Words { get; }
Property Value
Implements
Methods
ContainsWord(string)
Determines whether the specified word exists in the dictionary.
EnsureDictionaryLoaded()
Declaration
protected void EnsureDictionaryLoaded()
EnsureDictionaryLoadedOverride()
Declaration
protected virtual void EnsureDictionaryLoadedOverride()
GetMetaphoneKey(string)
Generates a metaphone key based on the specified input string.
GetWordsByMetaphoneKey(string)
Retrieves a list of words from the dictionary that match the specified Metaphone key.
Declaration
public IEnumerable<string> GetWordsByMetaphoneKey(string word)
Parameters
word
The Metaphone key used to search for corresponding words in the dictionary.
Returns
A collection of words that match the provided Metaphone key. If no words are found, an empty collection is returned.
Implements
Load(IEnumerable<string>)
Declaration
protected void Load(IEnumerable<string> entries)
Parameters
entries
Load(Stream)
Loads the dictionary data from the specified stream.
Declaration
public void Load(Stream stream)
Parameters
stream
The stream containing the dictionary data to be loaded.
OnDataChanged()
Declaration
protected virtual void OnDataChanged()