DeleteCommentCommand
Class
Deletes the comment identified by the caret or selection.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class DeleteCommentCommand : CommentCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseCommentCommandBaseDeleteCommentCommand
Implements:
Inherited Members
Constructors
Creates the command and tracks selection and caret changes to update its availability.
C#
public DeleteCommentCommand(RadRichTextBox editor)
The editor whose current comment can be deleted.
Methods
Checks whether the caret or a single-range selection identifies an inline inside a comment.
Deletes the comment containing the inline resolved from the caret or selection, if its annotation range permits editing.