windowsforms-devexpress-dot-xtraeditors-dot-groupcontrol-6c5c5cc8.md
Occurs each time a user clicks a hyperlink within the control’s caption.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DXCategory("Action")]
public event HyperlinkClickEventHandler HyperlinkClick
<DXCategory("Action")>
Public Event HyperlinkClick As HyperlinkClickEventHandler
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. |
Handle the HyperlinkClick event to perform actions when a user clicks a hyperlink in the control’s caption.```
You can add a hyperlink to the GroupControl’s caption as follows:
The following example adds a hyperlink to the GroupControl’s header and launches this link when a user clicks it.
groupControl1.AllowHtmlText = true;
groupControl1.Text = "Resources <href=www.devexpress.com>(help)</href>";
//...
private void groupControl1_HyperlinkClick(object sender, DevExpress.Utils.HyperlinkClickEventArgs e) {
System.Diagnostics.Process.Start(e.Link);
}
GroupControl1.AllowHtmlText = True
GroupControl1.Text = "Resources <href=www.devexpress.com>(help)</href>"
'...
Private Sub GroupControl1_HyperlinkClick(sender As Object, e As DevExpress.Utils.HyperlinkClickEventArgs) Handles GroupControl1.HyperlinkClick
System.Diagnostics.Process.Start(e.Link)
End Sub
See Also