New to Telerik UI for WinForms? Start a free 30-day trial

Toggles spell checking for the associated editor and reports the editor's current setting as its toggle state.

Definition

Constructors

Initializes a new instance of the ToggleSpellCheckingCommand class.

C#
public ToggleSpellCheckingCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The associated RadRichTextBox.

Properties

Allows spell-checking changes while document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows the toggle in a read-only editor because it changes the editor's setting rather than document content.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

Allows spell-checking changes within read-only ranges.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Inverts the associated editor's spell-checking setting.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether spell checking is enabled in the associated editor.

C#
protected override bool GetToggleState()
Returns:

bool

true when spell checking is enabled; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()

Leaves span-style state unchanged because this toggle reflects the editor's spell-checking setting.

C#
protected override void UpdateSpanStyle()

Overrides: ToggleCommandBase.UpdateSpanStyle()