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 document link. An empty string indicates that the document 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 creates an internal link to the customer-details destination by using DocumentLink.DescriptiveText.

DocumentTarget target = new("CustomerDetails");
textControl.DocumentTargets.Add(target);
DocumentLink documentLink = new("View customer details", target);
textControl.DocumentLinks.Add(documentLink);

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