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


IActiveViewEvents.ContentsChanged Event (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IActiveViewEvents.ContentsChanged Event

Fired when the contents of the view changes.

[Visual Basic .NET]
Public Event ContentsChanged As ContentsChangedEventHandler
[C#]
public event ContentsChangedEventHandler ContentsChanged
[C++]
HRESULT ContentsChanged(
void
);

Product Availability

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

Remarks

The Map object fires this event when a new document is loaded.  Adding a new layer to a Map does not trigger this event.

The PageLayout object fires the event when IGraphicsContainer::DeleteAllElements in called and when a new document is loaded.

See Also

IActiveViewEvents Interface | IActiveView.ContentsChanged Method