TX Text Control .NET for WPF

OuterSubTextPart Property

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

Description

Gets a subtextpart's outer subtextpart. The property's value is an object of the type SubTextPart or null if this subtextpart is a top-level subtextpart.

Syntax

public SubTextPart OuterSubTextPart { get; }

Examples

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

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

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

Limitations

Read only.