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

Opens the associated editor's hyperlink dialog when the current selection supports hyperlink editing.

Definition

Constructors

Initializes the command and tracks selection changes that affect whether the dialog can be opened.

C#
public ShowInsertHyperlinkDialogCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose selection and dialog are used by the command.

Properties

Gets a value indicating whether command execution should return keyboard focus to the editor. The dialog is shown without explicitly refocusing the editor.

C#
protected override bool ShouldFocusCaretAfterExecute { get; }

Overrides: RichTextBoxCommandBase.ShouldFocusCaretAfterExecute

Methods

Returns whether the current selection can be used to open the hyperlink dialog. A selection must be empty or contain one range and must not fully select a combo box, date, drop-down list, text, or picture content control.

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

Not used by this command.

Returns:

bool

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Opens the hyperlink dialog configured on the associated rich text box.

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

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)