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

IActiveViewEvents.ItemReordered 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.ItemReordered Event
ArcGIS Developer Help

IActiveViewEvents.ItemReordered Event

Fired when a view item is reordered.

[Visual Basic .NET]
Public Event ItemReordered As ItemReorderedEventHandler
public event ItemReorderedEventHandler ItemReordered
HRESULT ItemReordered(
  long toIndex
Item [in]

Item is a parameter of type VARIANT toIndex [in]
toIndex is a parameter of type long

Product Availability

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


The Map objects only fire this event whenever IMap::MoveLayer is called.  In the ArcMap application, this occurs when you reorder layers in the table of contents.  The Map will also fire this event when new layers are added.

The PageLayout object fires this event when changing the order of graphics.  For example, IGraphicsContainer::BringToFront, PutElementOrder, SendToBack, SendBackward, and BringForward all fire this event.  These functions are on ArcMap's Drawing menu under the Order pull right menu.  Although the Map object is also a graphics container, it does not fire this event when its graphics are reordered.

See Also

IActiveViewEvents Interface