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


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

IActiveViewEvents.ItemReordered Event

Fired when a view item is reordered.

[Visual Basic .NET]
Public Event ItemReordered As ItemReorderedEventHandler
[C#]
public event ItemReorderedEventHandler ItemReordered
[C++]
HRESULT ItemReordered(
  VARIANT Item,
  long toIndex
);
[C++]

Parameters 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.

Remarks

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