Provides access to events that occur when the Page changes.
| Description | ||
|---|---|---|
![]() |
PageColorChanged | Fired when the page color changes. |
![]() |
PageMarginsChanged | Fired when the page margins change. |
![]() |
PageSizeChanged | Fired when the page size changes. |
![]() |
PageUnitsChanged | Fired when the units used by the page changes. |
| CoClasses and Classes | Description |
|---|---|
| Page | The On Screen Page. |
| PageEventsListener (esriSystemUtility) | Helper coclass to provide IPageEvents support to the C++ API. |
| PageLayout | Page Layout class contains maps and map surrounds. |
Use this interface to be notified when the page changes. This event is fired by the Page coclass and can be listened to by implementing IPageEvents.
In VB initialize a vairable to listen to page events as follows:
Private WithEvents m_pPageEvents As Page
Initialize the variable on any appropriate event such as loading a form or opening a map as follows:
...
Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument
Set pPageEvents = pMxDoc.PageLayout.Page
...