Pages object (Visio)
Includes a Page object for each drawing page in a document.
To retrieve a Pages collection, use the Pages property of a Document object.
The default property of a Pages collection is Item.
The order of items in a Pages collection is significant: if there are n foreground pages in a document, the first n pages in its Pages collection are foreground pages and are in order. The remaining pages in the collection are the background pages of the document; these are in no particular order.
If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this collection maps to the following types:
- Microsoft.Office.Interop.Visio.IVPages
- AfterReplaceShapes
- BeforePageDelete
- BeforeReplaceShapes
- BeforeSelectionDelete
- BeforeShapeDelete
- BeforeShapeTextEdit
- CalloutRelationshipAdded
- CalloutRelationshipDeleted
- CellChanged
- ConnectionsAdded
- ConnectionsDeleted
- ContainerRelationshipAdded
- ContainerRelationshipDeleted
- ConvertToGroupCanceled
- FormulaChanged
- GroupCanceled
- PageAdded
- PageChanged
- PageDeleteCanceled
- QueryCancelConvertToGroup
- QueryCancelGroup
- QueryCancelPageDelete
- QueryCancelReplaceShapes
- QueryCancelSelectionDelete
- QueryCancelUngroup
- ReplaceShapesCanceled
- SelectionAdded
- SelectionDeleteCanceled
- ShapeAdded
- ShapeChanged
- ShapeDataGraphicChanged
- ShapeExitedTextEdit
- ShapeLinkAdded
- ShapeLinkDeleted
- ShapeParentChanged
- TextChanged
- UngroupCanceled
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.