New to Telerik UI for WinForms? Start a free 30-day trial

Provides word lookup and phonetic-key access used by spell checking and suggestion generation.

Definition

Namespace:Telerik.WinForms.Documents.Proofing

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public interface IWordDictionary

Properties

Words

IEnumerable<string>

Gets the spellings contained in the dictionary.

C#
IEnumerable<string> Words { get; }

Methods

Determines whether the dictionary contains the specified spelling.

C#
bool ContainsWord(string word)
Parameters:wordstring

The spelling to look up.

Returns:

bool

true when the spelling is present; otherwise, false.

Gets the primary Metaphone key recorded for a spelling.

C#
string GetMetaphoneKey(string word)
Parameters:wordstring

The spelling whose phonetic key is requested.

Returns:

string

The primary phonetic key, or an empty string when no key is available. A dictionary without a phonetic index can return an empty string for words it contains.

Gets dictionary spellings that share a primary Metaphone key.

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

The primary Metaphone key to look up, not the original spelling.

Returns:

IEnumerable<string>

The matching spellings, or an empty sequence when the key is not present or the dictionary has no phonetic index.