This document is archived and information here might be outdated.  Recommended version.

IActiveViewEvents.ViewRefreshed Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveViewEvents Interface > IActiveViewEvents.ViewRefreshed Event
ArcGIS Developer Help

IActiveViewEvents.ViewRefreshed Event

Fired when view is refreshed before draw happens.

[Visual Basic .NET]
Public Event ViewRefreshed As ViewRefreshedEventHandler
public event ViewRefreshedEventHandler ViewRefreshed
HRESULT ViewRefreshed(
  IActiveView* View,
  esriViewDrawPhase phase,
  IEnvelope* envelope
View [in]

View is a parameter of type IActiveView* phase [in]
phase is a parameter of type esriViewDrawPhase Data [in]
Data is a parameter of type VARIANT envelope [in]
envelope is a parameter of type IEnvelope*

Product Availability

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


Method that gets fired in response to IActiveView::Refresh and IActiveView::PartialRefresh.


This event is useful in the case where you're watching for something to change in the view and there aren't any specific events for that change (e.g. ContentsChanged, ItemAdded). You can always listen for this method as a last resort. Care must be taken however to be very efficient in your implementation of this event because it will be called quite often.

The event parameters directly coincide with the arguments to IActiveView::PartialRefresh. For additional information about the arguments, see the help for that method.

If the event object connects to both the layout and a map, then the view parameter tells you which object initiated the event.

In an implementation of this method you typically want to check the phase and respond to only one. Otherwise, your code will execute multiple times per drawing sequence.

See Also

IActiveViewEvents Interface