Skip to main content
All docs
V22.2

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.v22.2.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 + "'" ;
    }
}
See Also