Class
RadInsertHyperlinkDialog

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:

cs-api-definition
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.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.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.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

RadInsertHyperlinkDialog()

Initializes a new instance of the RadInsertHyperlinkDialog class.

Declaration

cs-api-definition
public RadInsertHyperlinkDialog()

Properties

HyperlinkPattern

Declaration

cs-api-definition
public string HyperlinkPattern { get; set; }

Property Value

string

Methods

InitializeComponent()

InitializeComponent

Declaration

cs-api-definition
public void InitializeComponent()

ShowDialog(string, HyperlinkInfo, IEnumerable<string>, Action<string, HyperlinkInfo>, Action, RadRichTextBox)

Shows the dialog for inserting hyperlinks.

Declaration

cs-api-definition
public void ShowDialog(string text, HyperlinkInfo currentHyperlinkInfo, IEnumerable<string> bookmarkNames, Action<string, HyperlinkInfo> insertHyperlinkCallback, Action cancelCallback, RadRichTextBox owner)

Parameters

text

string

The text of the hyperlink.

currentHyperlinkInfo

HyperlinkInfo

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

bookmarkNames

IEnumerable<string>

Names of all existing bookmarks.

insertHyperlinkCallback

Action<string, HyperlinkInfo>

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

cancelCallback

Action

The callback that will be called on cancelation.

owner

RadRichTextBox

The owner of the dialog.

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