New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class RadDictionary : IWordDictionary

Inheritance: objectRadDictionary

Derived Classes: RadEn_USDictionaryRadIsolatedStorageCustomDictionaryRadNonPersistentCustomDictionary

Implements: IWordDictionary

Constructors

C#
public RadDictionary()
C#
public RadDictionary(int expectedSize)
Parameters:expectedSizeint

Fields

C#
protected Dictionary<string, Tuple<string, string>> metaphoneByWord
C#
protected Dictionary<string, List<string>> wordsByMetaphone
C#
protected Dictionary<string, List<string>> wordsByMetaphoneAlternate

Properties

C#
protected bool DictionaryLoaded { get; }

Represents a collection of words used for proofing, enabling functionalities such as spell checking and grammar checking.

C#
public IEnumerable<string> Words { get; }

Implements: IWordDictionary.Words

C#
protected List<string> WordsList { get; set; }

Methods

C#
protected void AddWordToMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)
Parameters:wordstringmetaphonestringmetaphoneAlternatestring

Determines whether the specified word exists in the dictionary.

C#
public bool ContainsWord(string word)
Parameters:wordstring

The word to search for in the dictionary.

Returns:

bool

True if the word is found; otherwise, false.

Implements: IWordDictionary.ContainsWord(string)

C#
protected void EnsureDictionaryLoaded()
C#
protected virtual void EnsureDictionaryLoadedOverride()

Generates a metaphone key based on the specified input string.

C#
public string GetMetaphoneKey(string word)
Parameters:wordstring

The input string for which the metaphone key is to be generated.

Returns:

string

A string representing the metaphone key derived from the input.

Implements: IWordDictionary.GetMetaphoneKey(string)

Retrieves a list of words from the dictionary that match the specified Metaphone key.

C#
public IEnumerable<string> GetWordsByMetaphoneKey(string word)
Parameters:wordstring

The Metaphone key used to search for corresponding words in the dictionary.

Returns:

IEnumerable<string>

A collection of words that match the provided Metaphone key. If no words are found, an empty collection is returned.

Implements: IWordDictionary.GetWordsByMetaphoneKey(string)

C#
protected void Init(int expectedSize)
Parameters:expectedSizeint
C#
protected void Load(IEnumerable<string> entries)
Parameters:entriesIEnumerable<string>

Loads the dictionary data from the specified stream.

C#
public void Load(Stream stream)
Parameters:streamStream

The stream containing the dictionary data to be loaded.

C#
protected virtual void OnDataChanged()
C#
protected void RemoveWordFromMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)
Parameters:wordstringmetaphonestringmetaphoneAlternatestring

Events

C#
public event EventHandler DataChanged