Pages Interface

A collection of pages in a document. Use the Pages collection and the related objects and properties for programmatically defining page layout in a workbook.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

public interface Pages : IEnumerable

Use the Pages property to return a Pages collection.

Use the Item[Object] property to access an individual Pageobject that represents an individual page in a worksheet. The following example accesses the first page in the active worksheet.