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


IActiveViewEvents.ItemAdded Event (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IActiveViewEvents.ItemAdded Event

Fired when an item is added to the view.

[Visual Basic .NET]
Public Event ItemAdded As ItemAddedEventHandler
[C#]
public event ItemAddedEventHandler ItemAdded
[C++]
HRESULT ItemAdded(
  VARIANT Item
);
[C++]

Parameters Item [in] Item is a parameter of type VARIANT

Product Availability

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

Remarks

The Map fires the event every time a new layer is added.

The PageLayout fires this event whenever a new element is added to the layout.  Elements include not only graphics but data frames as well.

See Also

IActiveViewEvents Interface