HasPageNumbers Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets a value specifying whether the table of contents contains page numbers.
Syntax
public bool HasPageNumbers { get; set; }Public Property HasPageNumbers As BooleanExamples
The following example creates a table of contents for the document's heading styles by using TableOfContents.HasPageNumbers.
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);
tableOfContents.HasPageNumbers = true;
if (tableOfContents.HasPageNumbers)
{
Console.WriteLine("Table Of Contents: Has Page Numbers is enabled.");
}Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)
tableOfContents.HasPageNumbers = True
If tableOfContents.HasPageNumbers Then
Console.WriteLine("Table Of Contents: Has Page Numbers is enabled.")
End If