Back to Devexpress

GroupControl.HyperlinkClick Event

windowsforms-devexpress-dot-xtraeditors-dot-groupcontrol-6c5c5cc8.md

latest3.4 KB
Original Source

GroupControl.HyperlinkClick Event

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

Declaration

csharp
[DXCategory("Action")]
public event HyperlinkClickEventHandler HyperlinkClick
vb
<DXCategory("Action")>
Public Event HyperlinkClick As HyperlinkClickEventHandler

Event Data

The HyperlinkClick event's data class is HyperlinkClickEventArgs. The following properties provide information specific to this event:

PropertyDescription
LinkGet or sets the URL of the clicked hyperlink.
MouseArgsGets or sets mouse coordinates calculated from the toolbar’s upper left corner.
TextGets or sets the hyperlink alt text. Note that modifying this text does not change the item caption.

Remarks

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:

Example

The following example adds a hyperlink to the GroupControl’s header and launches this link when a user clicks it.

csharp
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);
}
vb
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

AllowHtmlText

Text

GroupControl Class

GroupControl Members

DevExpress.XtraEditors Namespace