This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlEvents2 Interface > IMapControlEvents2.OnMapReplaced Event (ArcObjects .NET 10.4 SDK) |
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
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.