TX Text Control .NET for Windows Forms

Section 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 number, one-based, of the section the page belongs to. If there are more than one section on the page, the number of the first section is returned. The first section determines the page's size and orientation.

Syntax

public int Section { get; }

Examples

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

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

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

page.Select();

Limitations

Read only.