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

Opens the hyperlink containing the caret through the editor's hyperlink UI provider.

Definition

Constructors

Creates a command that opens hyperlinks from the specified editor.

C#
public OpenHyperlinkCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose caret identifies the hyperlink to open.

Properties

Allows opening a hyperlink even when document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows opening a hyperlink when the editor is read-only.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

Allows opening a hyperlink when the caret is in a read-only range.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Opens the hyperlink associated with the inline at the caret.

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

Not used; the target hyperlink is resolved from the caret.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)