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

Provides spell checking functionality for rich text content within a text box.

Definition

Namespace:Telerik.Windows.Documents.Proofing

Assembly:Telerik.Windows.Documents.Proofing.dll

Syntax:

C#
public class RichTextBoxSpellChecker : ControlSpellCheckerBase, IControlSpellChecker

Inheritance: objectControlSpellCheckerBaseRichTextBoxSpellChecker

Implements: IControlSpellChecker

Inherited Members ControlSpellCheckerBase.ResetFields()ControlSpellCheckerBase.IgnoredWordsControlSpellCheckerBase.SpellChecker

Constructors

C#
public RichTextBoxSpellChecker()

Properties

Gets or sets the current control that is being checked for spelling.

C#
public override Control CurrentControl { get; set; }

Overrides: ControlSpellCheckerBase.CurrentControl

Represents the supported control types for the RichTextBoxSpellChecker.

C#
public override Type SupportedControlType { get; }

Overrides: ControlSpellCheckerBase.SupportedControlType

Methods

Changes the current word being checked by the spell checker to the specified word.

C#
public override void ChangeCurrentWord(string suggestion)
Parameters:suggestionstring

The word to set as the current word for spell checking.

Overrides: ControlSpellCheckerBase.ChangeCurrentWord(string)

Retrieves the content of the RichTextBox as a document object.

C#
public override RadDocument GetContentAsDocument()
Returns:

RadDocument

A RadDocument instance representing the current content of the RichTextBox.

Overrides: ControlSpellCheckerBase.GetContentAsDocument()

Moves the cursor to the next spelling or grammar error in the content.

C#
public override IWordInfo MoveToNextError()
Returns:

IWordInfo

True if the cursor was successfully moved to the next error; otherwise, false.

Overrides: ControlSpellCheckerBase.MoveToNextError()

Sets the content of the RichTextBoxSpellChecker from a specified RadDocument.

C#
public override void SetContentFromDocument(RadDocument document)
Parameters:documentRadDocument

The RadDocument that contains the content to be set in the RichTextBoxSpellChecker.

Overrides: ControlSpellCheckerBase.SetContentFromDocument(RadDocument)