TX Text Control .NET for Windows Forms

NumberInSection Property

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

Description

Gets the page number relative to the beginning of the section the page belongs to. The first page of the section has the number 1.

Syntax

public int NumberInSection { get; }

Examples

The following example works with the first laid-out page of a short report by using Page.NumberInSection.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Page page = textControl.GetPages()[1];

Console.WriteLine($"Number In Section: {page.NumberInSection}");
Console.WriteLine("Page is ready for use.");

page.Select();

Limitations

Read only.