NestedLevel Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the subtextpart's nested level. The top level is 1.
Syntax
public int NestedLevel { get; }Public ReadOnly Property NestedLevel As IntegerExamples
The following example marks the selected customer name as a named document region by using SubTextPart.NestedLevel.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
SubTextPart subTextPart = new("CustomerName", 10);
textControl.SubTextParts.Add(subTextPart);
Console.WriteLine($"Nested Level: {subTextPart.NestedLevel}");
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($"Nested Level: {subTextPart.NestedLevel}")
Console.WriteLine("Sub Text Part is ready for use.")Limitations
Read only.