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


IMapControlEvents2.OnMapReplaced Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlEvents2 Interface > IMapControlEvents2.OnMapReplaced Event
ArcGIS Developer Help

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