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

Toggles the display of nonprinting formatting symbols in the associated document without changing its content.

Definition

Constructors

Initializes the command for the specified editor.

C#
public ToggleFormattingSymbolsCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose document's formatting-symbol visibility is toggled.

Properties

Allows the command to run when the document is protected.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows the command to run when the current editing range is read-only.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Toggles the associated editor's formatting-symbol visibility.

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

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether formatting symbols are currently shown in the associated editor's document.

C#
protected override bool GetToggleState()
Returns:

bool

true when a document is loaded and its formatting symbols are shown; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()