This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveViewEvents Interface > IActiveViewEvents.ItemAdded Event (ArcObjects .NET 10.5 SDK) |
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
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.