RadSpellChecker
Represents a component that provides spell checking functionality for various text-based controls in Windows Forms applications.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.SpellChecker.dll
Syntax:
[TelerikToolboxCategory("Editors")]
public class RadSpellChecker : Component, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentRadSpellChecker
Implements:
Constructors
public RadSpellChecker()
Properties
Gets or sets the control that will be automatically spell checked as the user types. Supports TextBox, RichTextBox, RadTextBox, RadTextBoxControl, and RadAutoCompleteBox controls.
public virtual object AutoSpellCheckControl { get; set; }
Gets or sets a value that determines whether the "Spell check complete" message box is displayed when spell checking is finished.
public bool EnableCompleteMessageBox { get; set; }
Gets the form settings that control the appearance and behavior of the spell checking dialog.
[Browsable(false)]
public FormSettings FormSettings { get; }
Gets or sets the spell checking mode that determines whether to check text word-by-word or all at once.
public SpellCheckMode SpellCheckMode { get; set; }
Gets or sets the start position of the spelling dialog form when it is displayed.
public FormStartPosition SpellingFormStartPosition { get; set; }
Gets or sets control's preferred theme name. Themes are stored and retrieved using APIs of ThemeResolutionService.
[Browsable(true)]
public string ThemeName { get; set; }
If ThemeResolutionService.ApplicatonThemeName refers to a non-empty string, the theme of a RadControl can differ from the one set using RadControls.ThemeName property. If the themes differ, the RadControls.ThemeName property will be overridden by ThemeResolutionService.ApplicatonThemeName. If no theme is registered with a name as ThemeResolutionService.ApplicatonThemeName, then control will revert to the theme specified by its ThemeName property. If ThemeName is assigned to a non-existing theme name, the control may have no visual properties assigned, which will cause it look and behave in unexpected manner. If ThemeName equals empty string, control's theme is set to a theme that is registered within ThemeResolutionService with the name "ControlDefault".
Methods
Checks the specified edit control for spelling mistakes and displays appropriate dialogs based on the current SpellCheckMode.
public void Check(Control editControl)
The control to check for spelling mistakes.
Performs spell checking on the entire text content at once using a dialog that displays all misspelled words.
protected virtual void CheckAllAtOnce(IControlSpellChecker spellChecker)
The control spell checker to use for checking spelling.
Performs spell checking one word at a time, displaying a dialog for each misspelled word found.
protected virtual void CheckWordByWord(IControlSpellChecker spellChecker)
The control spell checker to use for checking spelling.
Releases the unmanaged resources used by the RadSpellChecker and optionally releases the managed resources.
protected override void Dispose(bool disposing)
True to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Gets the appropriate spell checker for the specified control type. If no exact match is found, searches through the inheritance hierarchy to find a compatible spell checker.
public IControlSpellChecker GetControlSpellChecker(Type editControlType)
Type of the edit control to find a spell checker for.
Returns:An IControlSpellChecker instance that can handle the specified control type, or null if no suitable spell checker is registered.
Raises the SpellingFormShowing event.
protected virtual void OnSpellingFormShowing(SpellingFormShowingEventArgs e)
The event arguments containing the spelling form information.
Registers an instance of IControlSpellChecker that is responsible for managing the spell checking of a specific type of control.
public void RegisterControlSpellChecker(Type controlType, IControlSpellChecker spellChecker)
The type of control to be associated with the spell checker.
spellCheckerIControlSpellCheckerThe spell checker implementation that will handle the specified control type.
Sets up the appropriate spell checker for the specified control to enable auto spell checking.
Events
Occurs when a spelling form is about to be displayed, providing an opportunity to customize or cancel the form.
public event SpellingFormShowingEventHandler SpellingFormShowing