Toggles comment visibility without changing the document's comment content.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ToggleCommentsCommand : ToggleCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseToggleCommandBaseToggleCommentsCommand
Implements:
Inherited Members
Constructors
Creates the visibility toggle for the specified editor.
public ToggleCommentsCommand(RadRichTextBox editor)
The editor whose comments are shown or hidden.
Properties
Allows visibility changes regardless of document protection.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows visibility changes when the editor is read-only because they do not modify document content.
protected override bool CanExecuteInReadOnlyMode { get; }
Overrides:
Allows visibility changes when the current editing range is read-only.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Toggles comment visibility, focusing the editor first when comments are currently shown.