TX Text Control .NET for Windows Forms

NestedLevel Property

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

Description

Gets the nested level for the specified table. Top level tables have a level of 1.

Syntax

public int NestedLevel { get; }

Examples

The following example labels an outer table and a nested table with their respective nesting levels.

textControl.Tables.Add(2, 2, 10);
Table outerTable = textControl.Tables.GetItem(10);

textControl.InputPosition =
    new InputPosition(outerTable.Cells.GetItem(1, 1).Start);
textControl.Tables.Add(2, 2, 20);
Table nestedTable = outerTable.NestedTables.GetItem(20);

outerTable.DescriptiveText = $"Summary table, level {outerTable.NestedLevel}";
nestedTable.DescriptiveText = $"Detail table, level {nestedTable.NestedLevel}";

Limitations

Read only.