OuterMostSubTextPart Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property OuterMostSubTextPart As SubTextPartExamples
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.");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim subTextPart As New SubTextPart("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.