ClassRadInsertHyperlinkDialog
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
RadInsertHyperlinkDialog()
Initializes a new instance of the RadInsertHyperlinkDialog class.
Declaration
public RadInsertHyperlinkDialog()
Properties
Methods
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
ShowDialog(string, HyperlinkInfo, IEnumerable<string>, Action<string, HyperlinkInfo>, Action, RadRichTextBox)
Shows the dialog for inserting hyperlinks.
Declaration
public void ShowDialog(string text, HyperlinkInfo currentHyperlinkInfo, IEnumerable<string> bookmarkNames, Action<string, HyperlinkInfo> insertHyperlinkCallback, Action cancelCallback, RadRichTextBox owner)
Parameters
text
The text of the hyperlink.
currentHyperlinkInfo
The current hyperlink info. Null if we are not in edit mode.
bookmarkNames
Names of all existing bookmarks.
insertHyperlinkCallback
The callback that will be called on confirmation to insert the hyperlink.
cancelCallback
The callback that will be called on cancelation.
owner
The owner of the dialog.
Implements