Skip to main content
All docs
V24.1

HyperlinkClickEventArgs.Text Property

Gets or sets the hyperlink alt text. Note that modifying this text does not change the item caption.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public string Text { get; set; }

Property Value

Type Description
String

The hyperlink alt text.

Remarks

The sample below illustrates the difference between HyperlinkClickEventArgs.Text and BarItem.Caption properties.

hyperlink text

counter = 0;
barStaticItem1.Caption = "<a href=fakeurl>Click to increase the counter (Current value: "
    + counter.ToString() + ")";

void OnHyperlinkClick(object sender, HyperlinkClickEventArgs e) {
    if (e.Link == "fakeurl") {
        counter++;
        e.Text = "Click to increase the counter(Current value: " + counter.ToString() + ")";
        barStaticItem1.Hint = "e.Text value: '" + e.Text + "'" ;
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text 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.

See Also