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

Removes the hyperlink containing the caret.

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class RemoveHyperlinkCommand : FieldRangeStartBaseCommandBase<HyperlinkRangeStart>, ICommand

Inheritance: objectRichTextBoxCommandBaseFieldRangeStartBaseCommandBase<HyperlinkRangeStart>RemoveHyperlinkCommand

Implements: ICommand

Inherited Members FieldRangeStartBaseCommandBase<HyperlinkRangeStart>.CanExecuteOverride(object)FieldRangeStartBaseCommandBase<HyperlinkRangeStart>.GetCurrentInnerFieldRangeStart()FieldRangeStartBaseCommandBase<HyperlinkRangeStart>.GetCurrentOuterFieldRangeStart()RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.UpdateSpanStyle()RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged...

Constructors

Creates a command that removes hyperlinks from the specified editor.

C#
public RemoveHyperlinkCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose caret identifies the hyperlink to remove.

Methods

Removes the hyperlink at the caret when one is present.

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

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)