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


IMapControlEvents2.OnMapReplaced Event (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IMapControlEvents2.OnMapReplaced Event

Fires after the Map contained by the MapControl has been replaced.

[Visual Basic .NET]
Public Event OnMapReplaced As OnMapReplacedEventHandler
[C#]
public event OnMapReplacedEventHandler OnMapReplaced
[C++]
HRESULT OnMapReplaced(
  VARIANT newMap
);
[C++]

Parameters newMap newMap is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine.

Description

The OnMapReplaced event is triggered whenever the IMapControl2::Map is replaced by another map, such as when the IMapControl2::LoadMxFile method is used or when the map property is explicitly replaced. Use this event to keep in synch with the current map.

See Also

IMapControlEvents2 Interface