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 the frame. An empty string indicates that the frame 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 a callout frame and works with it through the common frame API by using FrameBase.DescriptiveText.

TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;

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