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

Deletes comments in reverse document order, stopping when a comment range does not grant editing permission.

Definition

Constructors

Creates the command and tracks selection and caret changes to update its availability.

C#
public DeleteAllCommentsCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose document's comments can be deleted.

Properties

Allows command availability checks in read-only ranges; deletion remains subject to editor and annotation permissions.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Determines whether the document contains at least one comment range marker.

C#
protected override bool CanExecuteOverride(object parameter)
Parameters:parameterobjectReturns:

bool

true when the document contains a comment; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Deletes comments in reverse document order until permission fails; earlier comments may remain.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)