TX Text Control .NET Server

HasRightAlignedPageNumbers Property

Property|Introduced in 29.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets a value specifying whether the page numbers in the table of contents are right-aligned. To realize right-aligned page numbers a tab is inserted and its TabType is set to RightBorderTab.

Syntax

public bool HasRightAlignedPageNumbers { get; set; }

Examples

The following example creates a table of contents for the document's heading styles by using TableOfContents.HasRightAlignedPageNumbers.

TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);

tableOfContents.HasRightAlignedPageNumbers = true;
if (tableOfContents.HasRightAlignedPageNumbers)
{
    Console.WriteLine("Table Of Contents: Has Right Aligned Page Numbers is enabled.");
}