HyperlinkClickEventArgs.Link Property
Get or sets the URL of the clicked hyperlink.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v21.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Win.Design, 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);
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Link property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.