New to Telerik UI for WPFStart a free 30-day trial

Represents a dialog window for inserting hyperlinks within a RichTextBox. This class facilitates the creation and editing of hyperlinks by providing options to specify hyperlink text, navigate URI, and associated bookmark names. The dialog can be invoked to display appropriate input fields based on whether a hyperlink already exists and allows for user interaction through confirmation and cancellation callbacks. It also includes functionality to validate input against predefined hyperlink patterns.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class RadInsertHyperlinkDialog : RadRichTextBoxWindow, INotifyLayoutChange, IDragAware, IInsertHyperlinkDialog, IComponentConnector

Inheritance: objectWindowBaseRadWindowRadRichTextBoxWindowRadInsertHyperlinkDialog

Implements: IComponentConnectorIDragAwareIInsertHyperlinkDialogINotifyLayoutChange

Inherited Members RadRichTextBoxWindow.OnClosed(WindowClosedEventArgs)RadRichTextBoxWindow.SetOwner(RadRichTextBox)RadWindow.ResponseButtonPropertyRadWindow.IconPropertyRadWindow.IconMarginPropertyRadWindow.IconTemplatePropertyRadWindow.WindowStartupLocationPropertyRadWindow.DialogResultPropertyRadWindow.PromptResultPropertyRadWindow.BorderBackgroundPropertyRadWindow.RestoreMinimizedLocationPropertyRadWindow.IsRestrictedPropertyRadWindow.RestrictedAreaMarginPropertyRadWindow.IsRestrictedWhenMaximizedPropertyRadWindow.ShouldUpdateActiveStatePropertyRadWindow.GetParentRadWindow(DependencyObject)RadWindow.GetResponseButton(DependencyObject)RadWindow.SetResponseButton(DependencyObject, ResponseButton)RadWindow.OnApplyTemplate()RadWindow.Show()RadWindow.ShowDialog()RadWindow.ResetTheme()RadWindow.ShouldFocusOnActivate()RadWindow.ChangeVisualState(bool)RadWindow.OnInitialized(EventArgs)RadWindow.OnPreviewClosed(WindowPreviewClosedEventArgs)RadWindow.OnHostCreated(HostWindowCreatedEventArgs)RadWindow.OnGotFocus(RoutedEventArgs)RadWindow.OnLostFocus(RoutedEventArgs)RadWindow.OnKeyDown(KeyEventArgs)RadWindow.OnClosing()RadWindow.OnPreviewClosed()RadWindow.OnWindowStateChanged(EventArgs)RadWindow.GetWindowOwner()RadWindow.GetWindowStartupLocation()RadWindow.OnClosed()RadWindow.OnCreateAutomationPeer()RadWindow.Alert(object)RadWindow.Alert(object, EventHandler<WindowClosedEventArgs>)RadWindow.Alert(DialogParameters)RadWindow.Prompt(object, EventHandler<WindowClosedEventArgs>)RadWindow.Prompt(object, EventHandler<WindowClosedEventArgs>, string)RadWindow.Prompt(DialogParameters)RadWindow.Confirm(DialogParameters)RadWindow.Confirm(object, EventHandler<WindowClosedEventArgs>)RadWindow.ConfigureModal(RadAlert, DialogParameters)RadWindow.DefaultSizeRatioRadWindow.BorderBackgroundRadWindow.IconTemplateRadWindow.IconRadWindow.IconMarginRadWindow.WindowStartupLocationRadWindow.DialogResultRadWindow.PromptResultRadWindow.RestoreMinimizedLocationRadWindow.IsRestrictedRadWindow.RestrictedAreaMarginRadWindow.IsRestrictedWhenMaximizedRadWindow.ShouldUpdateActiveStateRadWindow.ClosedRadWindow.PreviewClosedRadWindow.HostCreatedWindowBase.IsModalPropertyWindowBase.IsOpenPropertyWindowBase.IsResizingPropertyWindowBase.IsDraggingPropertyWindowBase.IsActiveWindowPropertyWindowBase.IsInActiveStatePropertyWindowBase.IsTopmostPropertyWindowBase.CaptionHeightPropertyWindowBase.ResizeBorderPropertyWindowBase.LeftPropertyWindowBase.TopPropertyWindowBase.WindowStatePropertyWindowBase.ResizeModePropertyWindowBase.CanClosePropertyWindowBase.CanMovePropertyWindowBase.SizeToContentPropertyWindowBase.HideMinimizeButtonPropertyWindowBase.HideMaximizeButtonPropertyWindowBase.CornerRadiusPropertyWindowBase.Close()WindowBase.GetZIndex()WindowBase.BringToFront()WindowBase.GetNormalSizeAndPosition()WindowBase.ShouldActivateOnShow()WindowBase.ShouldShowInTaskSwitcher()WindowBase.ShouldActivate()WindowBase.ChangeVisualState()WindowBase.ShowWindow(bool)WindowBase.CheckCanClose()WindowBase.OnLayoutChangeEnded(EventArgs)WindowBase.OnLocationChanged(EventArgs)WindowBase.OnLayoutChangeStarted(EventArgs)WindowBase.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)WindowBase.GetApplicationSize()WindowBase.OnLayoutChangeEnded()WindowBase.OnLayoutChangeStarted()WindowBase.CloseWithoutEventsAndAnimations()WindowBase.OnCloseAnimationFinished()WindowBase.OnShowAnimationFinished()WindowBase.OnRightMouseButtonUp()WindowBase.OnRootVisualSizeChanged()WindowBase.OnDragStart(Point, bool)WindowBase.OnDragEnd(Point, bool, bool)WindowBase.OnDragDelta(Point, Rect, Rect, bool)WindowBase.GetWindowOwnerHandle()WindowBase.OnActivated(EventArgs)WindowBase.OnDeactivated(EventArgs)WindowBase.ShouldSystemMenuOnRightClick()WindowBase.IsModalWindowBase.IsOpenWindowBase.IsTopmostWindowBase.CaptionHeightWindowBase.ResizeBorderWindowBase.LeftWindowBase.TopWindowBase.IsResizingWindowBase.IsDraggingWindowBase.IsLayoutChangingWindowBase.WindowStateWindowBase.ResizeModeWindowBase.CanCloseWindowBase.CanMoveWindowBase.IsActiveWindowWindowBase.IsInActiveStateWindowBase.CornerRadiusWindowBase.SizeToContentWindowBase.HideMaximizeButtonWindowBase.HideMinimizeButtonWindowBase.OwnerWindowBase.ActivatedWindowBase.DeactivatedWindowBase.LayoutChangeEndedWindowBase.LayoutChangeStartedWindowBase.LocationChangedWindowBase.WindowStateChanged...

Constructors

Initializes a new instance of the RadInsertHyperlinkDialog class.

C#
public RadInsertHyperlinkDialog()

Properties

C#
public string HyperlinkPattern { get; set; }

Methods

InitializeComponent

C#
public void InitializeComponent()

Shows the dialog for inserting hyperlinks.

C#
public void ShowDialog(string text, HyperlinkInfo currentHyperlinkInfo, IEnumerable<string> bookmarkNames, Action<string, HyperlinkInfo> insertHyperlinkCallback, Action cancelCallback, RadRichTextBox owner)
Parameters:textstring

The text of the hyperlink.

currentHyperlinkInfoHyperlinkInfo

The current hyperlink info. Null if we are not in edit mode.

bookmarkNamesIEnumerable<string>

Names of all existing bookmarks.

insertHyperlinkCallbackAction<string, HyperlinkInfo>

The callback that will be called on confirmation to insert the hyperlink.

cancelCallbackAction

The callback that will be called on cancelation.

ownerRadRichTextBox

The owner of the dialog.

Implements: IInsertHyperlinkDialog.ShowDialog(string, HyperlinkInfo, IEnumerable<string>, Action<string, HyperlinkInfo>, Action, RadRichTextBox)