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

Toggles comment visibility without changing the document's comment content.

Definition

Constructors

Creates the visibility toggle for the specified editor.

C#
public ToggleCommentsCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose comments are shown or hidden.

Properties

Allows visibility changes regardless of document protection.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows visibility changes when the editor is read-only because they do not modify document content.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

Allows visibility changes when the current editing range is read-only.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Toggles comment visibility, focusing the editor first when comments are currently shown.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether comments are currently visible in the editor.

C#
protected override bool GetToggleState()
Returns:

bool

true when comments are shown; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()