ArcObjects Library Reference  (Carto)    

IPageEvents Interface

Provides access to events that occur when the Page changes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Event PageColorChanged Fired when the page color changes.
Event PageMarginsChanged Fired when the page margins change.
Event PageSizeChanged Fired when the page size changes.
Event PageUnitsChanged Fired when the units used by the page changes.

CoClasses that implement IPageEvents

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.

Remarks

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.

[Visual Basic 6.0]

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
...

 


Feedback Send feedback on this page