TX Text Control .NET Server

DescriptiveText Property

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

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}");
}