GetPages Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets a collection of all pages in the document. The property's value is an object of the type PageCollection. This collection is only available, if the TextControl.ViewMode property has been set to ViewMode.PageView. Otherwise, the method returns null.
Syntax
public PageCollection GetPages();Public Function GetPages() As PageCollectionExamples
The following example includes the pages value in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Pages: {textControl.Pages}");
Console.WriteLine("Text Control is ready for use.");Console.WriteLine($"Pages: {textControl.Pages}")
Console.WriteLine("Text Control is ready for use.")