CopyHyperlinkCommand
Selects the hyperlink containing the caret and copies its full range, including its display text.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class CopyHyperlinkCommand : FieldRangeStartBaseCommandBase<HyperlinkRangeStart>, ICommand
Inheritance: objectRichTextBoxCommandBaseFieldRangeStartBaseCommandBase<HyperlinkRangeStart>CopyHyperlinkCommand
Implements:
Inherited Members
Constructors
Creates a command that copies hyperlinks from the specified editor.
public CopyHyperlinkCommand(RadRichTextBox editor)
The editor whose caret identifies the hyperlink to copy.
Properties
Allows copying even when document protection is enforced.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows the command when the editor is read-only.
protected override bool CanExecuteInReadOnlyMode { get; }
Overrides:
Allows the command when the caret is in a read-only range.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Selects the hyperlink range containing the caret, then copies the selection.
protected override void ExecuteOverride(object parameter)
Not used; the target hyperlink is resolved from the caret.
Overrides: