windowsforms-devexpress-dot-utils-dot-hyperlinkclickeventargs.md
Get or sets the URL of the clicked hyperlink.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public string Link { get; set; }
Public Property Link As String
| Type | Description |
|---|---|
| String |
The hyperlink value.
|
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);
}
barStaticItem1.Caption = "Visit our <href=www.devexpress.com>Web-site</href>";
Private Sub OnHyperlinkClick(ByVal sender As Object, ByVal e As HyperlinkClickEventArgs)
If e.Link = "www.devexpress.com" Then
e.Link = "https://www.devexpress.com/products/net/controls/winforms/"
End If
System.Diagnostics.Process.Start(e.Link)
End Sub
See Also