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.AfterItemDraw Event (ArcObjects .NET 10.5 SDK) |
Fired after an individual view item is drawn. Example: view items include layers in a map or elements in a page layout.
[Visual Basic .NET] Public Event AfterItemDraw As AfterItemDrawEventHandler
[C#] public event AfterItemDrawEventHandler AfterItemDraw
[C++]
HRESULT AfterItemDraw(
short Index,
IDisplay* Display,
esriDrawPhase phase
);
[C++]
Parameters Index [in] Index is a parameter of type short Display [in]
Display is a parameter of type IDisplay phase
phase is a parameter of type esriDrawPhase
AfterItemDraw can be used to execute after each individual item has drawn. Event firing can be an expensive operation (time consuming) when there are many layers in a map, however. As a result, the AfterItemDraw event is only fired when the IViewManger::VerboseEvents property is set to True. By default this property is False.