TX Text Control .NET Server

Count Property

Property|Introduced in 14.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 the number of elements contained in the collection.

Syntax

public int Count { get; }

Examples

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

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

Console.WriteLine($"Count: {pageCollection.Count}");
Console.WriteLine("Page Collection is ready for use.");

Limitations

Read only.