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 property has been set to ViewMode.PageView. Otherwise, the method returns null.

Syntax

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