Length Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the number of characters which belong to the table of contents.
Syntax
public int Length { get; }Public ReadOnly Property Length As IntegerExamples
The following example creates a table of contents for the document's heading styles by using TableOfContents.Length.
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);
textControl.Select(tableOfContents.Start, tableOfContents.Length);
Console.WriteLine("Table Of Contents is ready for use.");Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)
textControl.Select(tableOfContents.Start, tableOfContents.Length)
Console.WriteLine("Table Of Contents is ready for use.")Limitations
Read only.