TextBoxSpellChecker
Checks spelling in text controls and provides as-you-type markers and context-menu word actions.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.SpellChecker.dll
Syntax:
[Export(typeof(IControlSpellChecker))]
public class TextBoxSpellChecker : ControlSpellCheckerBase, IControlSpellChecker, IDisposable
Inheritance: objectControlSpellCheckerBaseTextBoxSpellChecker
Implements:
Inherited Members
Constructors
Creates a checker that can be associated with a supported text control.
public TextBoxSpellChecker()
Creates a checker for a Telerik text-box control element.
public TextBoxSpellChecker(RadTextBoxControlElement radTextBoxControlElement)
The text-box element to check.
Creates a checker for a Windows Forms text box. Initialization is skipped in a terminal server session.
public TextBoxSpellChecker(TextBoxBase textBoxBase)
The text box to check.
Properties
Gets or sets the text control currently associated with this checker.
public override Control CurrentControl { get; set; }
Overrides:
Gets or sets the menu used to display spelling suggestions and word actions.
public RadDropDownMenu DropDownMenu { get; set; }
Methods
Replaces the current text selection with a suggestion. For a RichTextBox, the replacement path copies the selection's font family, size, style, and background color.
public override void ChangeCurrentWord(string suggestion)
The replacement spelling.
Overrides:
Clears tracked spelling errors, removes paint and context-menu hooks, and disposes the base spell-checking state.
public override void Dispose()
Overrides:
Enumerates candidate words from the associated text, excluding words the parser identifies as containing digits and, by default, words containing no lowercase characters.
public IEnumerable<IWordInfo> GetListOfWords()
IEnumerable<IWordInfo>
Words longer than one character with their starting positions in the text.
Replaces the associated text control's contents with the supplied document text.
public override void SetContentFromDocument(string document)
The text to display.
Overrides: