TX Text Control .NET for WPF

Item Property

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

Description

Gets a page from the collection. In C# this property is the indexer for the PageCollection class.

Syntax

public Page this[int number] { get; }

Examples

The following example works with the laid-out pages of a short report by using PageCollection.Item.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
PageCollection pageCollection = textControl.GetPages();

Console.WriteLine($"Item: {pageCollection[10]}");
Console.WriteLine("Page Collection is ready for use.");

Limitations

Read only.