HyperlinkClickEventArgs.Link Property
In This Article
Get or sets the URL of the clicked hyperlink.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
String | The hyperlink value. |
#Remarks
The Link property allows you to replace the actual link value with a custom URL.
barStaticItem1.Caption = "Visit our <href=www.devexpress.com>Web-site</href>";
void OnHyperlinkClick(object sender, HyperlinkClickEventArgs e) {
if (e.Link == "www.devexpress.com")
e.Link = "https://www.devexpress.com/products/net/controls/winforms/";
System.Diagnostics.Process.Start(e.Link);
}
See Also