XtraMessageBoxArgs.HyperlinkClick Event
Fires when a hyperlink is clicked.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The HyperlinkClick event's data class is HyperlinkClickEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Link | Get or sets the URL of the clicked hyperlink. |
MouseArgs | Gets or sets mouse coordinates calculated from the toolbar’s upper left corner. |
Text | Gets or sets the hyperlink alt text. Note that modifying this text does not change the item caption. |
Remarks
If the AllowHtmlText option is enabled, you can use HTML tags to format the message box text. Handle the HyperlinkClick to respond to a click on a hyperlink. The Link event argument returns the clicked link. The code below shows how to navigate to the clicked link in the default browser.
using DevExpress.XtraEditors;
XtraMessageBoxArgs args = new XtraMessageBoxArgs();
args.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True;
args.Text = "<href=www.devexpress.com>Our web site</href>";
args.HyperlinkClick += (s, e) => { System.Diagnostics.Process.Start(e.Link); };
XtraMessageBox.Show(args);
See Also