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

Moves to the next comment, prompting to continue from the document's beginning when no later comment is found.

Definition

Constructors

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

C#
public GoToNextCommentCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose comments can be navigated.

Properties

Allows command availability checks in read-only ranges.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Prevents the command base from explicitly refocusing the editor after navigation.

C#
protected override bool ShouldFocusCaretAfterExecute { get; }

Overrides: RichTextBoxCommandBase.ShouldFocusCaretAfterExecute

Methods

Determines whether the document contains any comments to navigate.

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

bool

true when at least one comment exists; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Moves to the next comment or prompts before wrapping to the first comment.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)