Toggles spell checking for the associated editor and reports the editor's current setting as its toggle state.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ToggleSpellCheckingCommand : ToggleCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseToggleCommandBaseToggleSpellCheckingCommand
Implements:
Inherited Members
Constructors
Initializes a new instance of the ToggleSpellCheckingCommand class.
public ToggleSpellCheckingCommand(RadRichTextBox editor)
The associated RadRichTextBox.
Properties
Allows spell-checking changes while document protection is enforced.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows the toggle in a read-only editor because it changes the editor's setting rather than document content.
protected override bool CanExecuteInReadOnlyMode { get; }
Overrides:
Allows spell-checking changes within read-only ranges.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Inverts the associated editor's spell-checking setting.
protected override void ExecuteOverride(object parameter)
Not used by this command.
Overrides:
Leaves span-style state unchanged because this toggle reflects the editor's spell-checking setting.
protected override void UpdateSpanStyle()
Overrides: