Class
SpellCheckingUIManager

Encapsulates logic for spell checking dialogs for RadRichTextBox.

Definition

Namespace:Telerik.Windows.Documents.UI.Extensibility

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class SpellCheckingUIManager

Inheritance: objectSpellCheckingUIManager

Constructors

SpellCheckingUIManager(RadRichTextBox)

Initializes a new instance of the SpellCheckingUIManager class.

Declaration

cs-api-definition
public SpellCheckingUIManager(RadRichTextBox radRichTextBox)

Parameters

radRichTextBox

RadRichTextBox

The instance of RadRichTextBox to be spell checked.

Methods

AddToDictionary(string)

Adds word to dictionary.

Declaration

cs-api-definition
public void AddToDictionary(string word)

Parameters

word

string

The word.

ChangeAll(string, string)

Changes all occurrences of the incorrectWord with suggestion.

Declaration

cs-api-definition
public void ChangeAll(string incorrectWord, string suggestion)

Parameters

incorrectWord

string

The incorrect word.

suggestion

string

The suggestion which will replace the word.

ChangeWord(string)

Changes the currently selected word with the suggestion.

Declaration

cs-api-definition
public void ChangeWord(string suggestion)

Parameters

suggestion

string

The suggestion.

CreateSpellCheckingContextDocument(TextRange)

Creates the spell checking context document.

Declaration

cs-api-definition
public RadDocument CreateSpellCheckingContextDocument(TextRange incorrectWordRange)

Parameters

incorrectWordRange

TextRange

Text range for the incorrect word.

Returns

RadDocument

RadDocument containing the incorrect word and its context.

GetSuggestions(string)

Gets the spellchecking suggestions for a word.

Declaration

cs-api-definition
public ICollection<string> GetSuggestions(string word)

Parameters

word

string

The word.

Returns

ICollection<string>

A collection filled with the suggestions.

HasCustomDictionary()

Determines whether there is custom dictionary to edit.

Declaration

cs-api-definition
public bool HasCustomDictionary()

Returns

bool

true if there is custom dictionary to edit; otherwise, false.

IgnoreAll(string)

Ignores all occurrences of word.

Declaration

cs-api-definition
public void IgnoreAll(string word)

Parameters

word

string

The word.

IgnoreCurrentWord()

Ignores the current word for further spell checking.

Declaration

cs-api-definition
public void IgnoreCurrentWord()

IgnoreWord(WordInfo)

Ignores the specified word for further spell checking.

Declaration

cs-api-definition
public void IgnoreWord(WordInfo wordInfo)

Parameters

wordInfo

WordInfo

The word to be ignored.

MoveToNextError()

Selects the next incorrect word and returns info about it.

Declaration

cs-api-definition
public WordInfo MoveToNextError()

Returns

WordInfo

Current incorrect word info.

ShowEditCustomDictionaryDialog()

Shows the dialog for editing custom spellchecking dictionaries.

Declaration

cs-api-definition
public void ShowEditCustomDictionaryDialog()