TX Text Control .NET Server

Length 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 characters of the page, including the page break character at the end of the page.

Syntax

public int Length { get; }

Examples

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

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

textControl.Select(page.Start, page.Length);
Console.WriteLine("Page is ready for use.");

page.Select();

Limitations

Read only.