TX Text Control .NET for Windows Forms

Text Property

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

Description

Gets the subtextpart's text.

Syntax

public string Text { get; }

Examples

The following example marks the selected customer name as a named document region by using SubTextPart.Text.

textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
SubTextPart subTextPart = new("CustomerName", 10);
textControl.SubTextParts.Add(subTextPart);

Console.WriteLine($"Text: {subTextPart.Text}");
Console.WriteLine("Sub Text Part is ready for use.");

Limitations

Read only.