Class
RadDictionary

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:

cs-api-definition
public class RadDictionary : IWordDictionary

Inheritance: objectRadDictionary

Derived Classes: RadEn_USDictionaryRadIsolatedStorageCustomDictionaryRadNonPersistentCustomDictionary

Implements: IWordDictionary

Constructors

RadDictionary()

Declaration

cs-api-definition
public RadDictionary()

RadDictionary(int)

Declaration

cs-api-definition
public RadDictionary(int expectedSize)

Parameters

expectedSize

int

Fields

metaphoneByWord

Declaration

cs-api-definition
protected Dictionary<string, Tuple<string, string>> metaphoneByWord

Field Value

Dictionary<string, Tuple<string, string>>

wordsByMetaphone

Declaration

cs-api-definition
protected Dictionary<string, List<string>> wordsByMetaphone

Field Value

Dictionary<string, List<string>>

wordsByMetaphoneAlternate

Declaration

cs-api-definition
protected Dictionary<string, List<string>> wordsByMetaphoneAlternate

Field Value

Dictionary<string, List<string>>

Properties

DictionaryLoaded

Declaration

cs-api-definition
protected bool DictionaryLoaded { get; }

Property Value

bool

Words

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

Declaration

cs-api-definition
public IEnumerable<string> Words { get; }

Property Value

IEnumerable<string>

Implements IWordDictionary.Words

WordsList

Declaration

cs-api-definition
protected List<string> WordsList { get; set; }

Property Value

List<string>

Methods

AddWordToMetaphoneDictionaries(string, string, string)

Declaration

cs-api-definition
protected void AddWordToMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)

Parameters

word

string

metaphone

string

metaphoneAlternate

string

ContainsWord(string)

Determines whether the specified word exists in the dictionary.

Declaration

cs-api-definition
public bool ContainsWord(string word)

Parameters

word

string

The word to search for in the dictionary.

Returns

bool

True if the word is found; otherwise, false.

Implements IWordDictionary.ContainsWord(string)

EnsureDictionaryLoaded()

Declaration

cs-api-definition
protected void EnsureDictionaryLoaded()

EnsureDictionaryLoadedOverride()

Declaration

cs-api-definition
protected virtual void EnsureDictionaryLoadedOverride()

GetMetaphoneKey(string)

Generates a metaphone key based on the specified input string.

Declaration

cs-api-definition
public string GetMetaphoneKey(string word)

Parameters

word

string

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)

GetWordsByMetaphoneKey(string)

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

Declaration

cs-api-definition
public IEnumerable<string> GetWordsByMetaphoneKey(string word)

Parameters

word

string

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)

Init(int)

Declaration

cs-api-definition
protected void Init(int expectedSize)

Parameters

expectedSize

int

Load(IEnumerable<string>)

Declaration

cs-api-definition
protected void Load(IEnumerable<string> entries)

Parameters

entries

IEnumerable<string>

Load(Stream)

Loads the dictionary data from the specified stream.

Declaration

cs-api-definition
public void Load(Stream stream)

Parameters

stream

Stream

The stream containing the dictionary data to be loaded.

OnDataChanged()

Declaration

cs-api-definition
protected virtual void OnDataChanged()

RemoveWordFromMetaphoneDictionaries(string, string, string)

Declaration

cs-api-definition
protected void RemoveWordFromMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)

Parameters

word

string

metaphone

string

metaphoneAlternate

string

Events

DataChanged

Declaration

cs-api-definition
public event EventHandler DataChanged

Event Value

EventHandler