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.

Introduced: 14.0.

Syntax

public PageCollection GetPages();
Public Function GetPages() As PageCollection