All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

LayoutControl.HyperlinkClick Event

Occurs each time a user clicks hyperlinks within captions of layout items and layout groups.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.2.dll

Declaration

[DXCategory("Action")]
public event EventHandler<LayoutItemHyperlinkClickEventArgs> HyperlinkClick
<DXCategory("Action")>
Public Event HyperlinkClick As EventHandler(Of LayoutItemHyperlinkClickEventArgs)

Event Data

The HyperlinkClick event's data class is DevExpress.XtraLayout.LayoutItemHyperlinkClickEventArgs.

Remarks

If you add a hyperlink to the text of a layout item or layout group, you can then handle the HyperlinkClick event to perform actions when a user clicks this hyperlink.

LayoutControl Hyperlink

You can add a hyperlink to a layout item's caption as follows:

To add a hyperlink to a layout group's caption, do the following:

Example

The following example adds a hyperlink to a layout item's caption and launches this link when a user clicks it.

LayoutControl Hyperlink

layoutControlItem1.AllowHtmlStringInCaption = true;
layoutControlItem1.Text = "Leave feedback <href=www.devexpress.com>(learn more)</href>";
//...
private void layoutControl1_HyperlinkClick(object sender, DevExpress.XtraLayout.LayoutItemHyperlinkClickEventArgs e) {
    System.Diagnostics.Process.Start(e.Link);
}
See Also