InsertCommentCommand
Class
Inserts a comment over the current selection, or over the current word when the selection is empty.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class InsertCommentCommand : CommentCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseCommentCommandBaseInsertCommentCommand
Implements:
Inherited Members
Constructors
Creates the command and tracks selection changes to update its availability.
C#
public InsertCommentCommand(RadRichTextBox editor)
The editor whose selection receives a comment.
Properties
Allows insertion from the document body or while a comment is selected.
C#
protected override CommandTargets SupportedTargets { get; }
Overrides:
Methods
Uses cached selection eligibility; when content layout exists, both range endpoints must have inline boxes and cannot cross table-cell boundaries.
Inserts a new comment, selects it, and enables comment display.