TX Text Control .NET for WPF

DescriptiveText Property

Property|Introduced in 34.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a descriptive text for a hypertext link. An empty string indicates that the hypertext link has no such text. An empty string can also be used to delete a previously set text.

Syntax

public string DescriptiveText { get; set; }

Examples

The following example adds and configures a link to the product documentation by using HypertextLink.DescriptiveText.

HypertextLink hypertextLink = new("TX Text Control documentation", "https://docs.textcontrol.com/");
textControl.HypertextLinks.Add(hypertextLink);

hypertextLink.DescriptiveText = "Quarterly sales by region";
if (!string.IsNullOrWhiteSpace(hypertextLink.DescriptiveText))
{
    Console.WriteLine($"Descriptive Text: {hypertextLink.DescriptiveText}");
}