TX Text Control .NET Server

OuterMostSubTextPart Property

Property|Introduced in 23.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 a subtextpart's outermost subtextpart. This is a top-level subtextpart with a nested level of 1. The property's value is an object of the type SubTextPart or null if this subtextpart is already a top-level subtextpart.

Syntax

public SubTextPart OuterMostSubTextPart { get; }

Examples

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

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

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

Limitations

Read only.