Class RadDictionary
Represents a specialized dictionary that provides advanced functionality for RadSpellChecker, including support for localization and efficient data retrieval.
Inheritance
Namespace: Telerik.Windows.Documents.Proofing
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class RadDictionary : Object, IWordDictionary
Constructors
RadDictionary()
Declaration
public RadDictionary()
RadDictionary(Int32)
Declaration
public RadDictionary(int expectedSize)
Parameters
System.Int32
expectedSize
|
Fields
metaphoneByWord
Declaration
protected Dictionary<string, Tuple<string, string>> metaphoneByWord
Field Value
System.Collections.Generic.Dictionary<System.String, System.Tuple<System.String, System.String>>
|
wordsByMetaphone
Declaration
protected Dictionary<string, List<string>> wordsByMetaphone
Field Value
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>>
|
wordsByMetaphoneAlternate
Declaration
protected Dictionary<string, List<string>> wordsByMetaphoneAlternate
Field Value
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>>
|
Properties
DictionaryLoaded
Declaration
protected bool DictionaryLoaded { get; }
Property Value
System.Boolean
|
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
System.Collections.Generic.IEnumerable<System.String>
|
Implements
WordsList
Declaration
protected List<string> WordsList { get; set; }
Property Value
System.Collections.Generic.List<System.String>
|
Methods
AddWordToMetaphoneDictionaries(String, String, String)
Declaration
protected void AddWordToMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)
Parameters
System.String
word
|
System.String
metaphone
|
System.String
metaphoneAlternate
|
ContainsWord(String)
Determines whether the specified word exists in the dictionary.
Declaration
public bool ContainsWord(string word)
Parameters
System.String
word
The word to search for in the dictionary. |
Returns
System.Boolean
True if the word is found; otherwise, false. |
Implements
EnsureDictionaryLoaded()
Declaration
protected void EnsureDictionaryLoaded()
EnsureDictionaryLoadedOverride()
Declaration
protected virtual void EnsureDictionaryLoadedOverride()
GetMetaphoneKey(String)
Generates a metaphone key based on the specified input string.
Declaration
public string GetMetaphoneKey(string word)
Parameters
System.String
word
The input string for which the metaphone key is to be generated. |
Returns
System.String
A string representing the metaphone key derived from the input. |
Implements
GetWordsByMetaphoneKey(String)
Retrieves a list of words from the dictionary that match the specified Metaphone key.
Declaration
public IEnumerable<string> GetWordsByMetaphoneKey(string word)
Parameters
System.String
word
The Metaphone key used to search for corresponding words in the dictionary. |
Returns
System.Collections.Generic.IEnumerable<System.String>
A collection of words that match the provided Metaphone key. If no words are found, an empty collection is returned. |
Implements
Init(Int32)
Declaration
protected void Init(int expectedSize)
Parameters
System.Int32
expectedSize
|
Load(IEnumerable<String>)
Declaration
protected void Load(IEnumerable<string> entries)
Parameters
System.Collections.Generic.IEnumerable<System.String>
entries
|
Load(Stream)
Loads the dictionary data from the specified stream.
Declaration
public void Load(Stream stream)
Parameters
System.IO.Stream
stream
The stream containing the dictionary data to be loaded. |
OnDataChanged()
Declaration
protected virtual void OnDataChanged()
RemoveWordFromMetaphoneDictionaries(String, String, String)
Declaration
protected void RemoveWordFromMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)
Parameters
System.String
word
|
System.String
metaphone
|
System.String
metaphoneAlternate
|
Events
DataChanged
Declaration
public event EventHandler DataChanged
Event Type
System.EventHandler
|