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

Selects the hyperlink containing the caret and copies its full range, including its display text.

Definition

Constructors

Creates a command that copies hyperlinks from the specified editor.

C#
public CopyHyperlinkCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose caret identifies the hyperlink to copy.

Properties

Allows copying even when document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows the command when the editor is read-only.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

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

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Selects the hyperlink range containing the caret, then copies the selection.

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

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)