Class
RichTextBoxSpellChecker

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:

cs-api-definition
public class RichTextBoxSpellChecker : ControlSpellCheckerBase, IControlSpellChecker

Inheritance: objectControlSpellCheckerBaseRichTextBoxSpellChecker

Implements: IControlSpellChecker

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

Constructors

RichTextBoxSpellChecker()

Declaration

cs-api-definition
public RichTextBoxSpellChecker()

Properties

CurrentControl

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

Declaration

cs-api-definition
public override Control CurrentControl { get; set; }

Property Value

Control

Overrides ControlSpellCheckerBase.CurrentControl

SupportedControlType

Represents the supported control types for the RichTextBoxSpellChecker.

Declaration

cs-api-definition
public override Type SupportedControlType { get; }

Property Value

Type

Overrides ControlSpellCheckerBase.SupportedControlType

Methods

ChangeCurrentWord(string)

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

Declaration

cs-api-definition
public override void ChangeCurrentWord(string suggestion)

Parameters

suggestion

string

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

Overrides ControlSpellCheckerBase.ChangeCurrentWord(string)

GetContentAsDocument()

Retrieves the content of the RichTextBox as a document object.

Declaration

cs-api-definition
public override RadDocument GetContentAsDocument()

Returns

RadDocument

A RadDocument instance representing the current content of the RichTextBox.

Overrides ControlSpellCheckerBase.GetContentAsDocument()

MoveToNextError()

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

Declaration

cs-api-definition
public override IWordInfo MoveToNextError()

Returns

IWordInfo

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

Overrides ControlSpellCheckerBase.MoveToNextError()

SetContentFromDocument(RadDocument)

Sets the content of the RichTextBoxSpellChecker from a specified RadDocument.

Declaration

cs-api-definition
public override void SetContentFromDocument(RadDocument document)

Parameters

document

RadDocument

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

Overrides ControlSpellCheckerBase.SetContentFromDocument(RadDocument)