Deletes comments in reverse document order, stopping when a comment range does not grant editing permission.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class DeleteAllCommentsCommand : CommentCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseCommentCommandBaseDeleteAllCommentsCommand
Implements:
Inherited Members
Constructors
Creates the command and tracks selection and caret changes to update its availability.
C#
public DeleteAllCommentsCommand(RadRichTextBox editor)
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:
Methods
Deletes comments in reverse document order until permission fails; earlier comments may remain.