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:
public class RadInsertHyperlinkDialog : RadRichTextBoxWindow, INotifyLayoutChange, IDragAware, IInsertHyperlinkDialog, IComponentConnector
Inheritance: objectWindowBaseRadWindowRadRichTextBoxWindowRadInsertHyperlinkDialog
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadInsertHyperlinkDialog class.
public RadInsertHyperlinkDialog()
Properties
public string HyperlinkPattern { get; set; }
Methods
InitializeComponent
public void InitializeComponent()
Shows the dialog for inserting hyperlinks.
public void ShowDialog(string text, HyperlinkInfo currentHyperlinkInfo, IEnumerable<string> bookmarkNames, Action<string, HyperlinkInfo> insertHyperlinkCallback, Action cancelCallback, RadRichTextBox owner)
The text of the hyperlink.
currentHyperlinkInfoHyperlinkInfoThe 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.
cancelCallbackActionThe callback that will be called on cancelation.
ownerRadRichTextBoxThe owner of the dialog.
Implements: