ArcObjects Library Reference (Controls)  

IMapControlEvents2.OnMapReplaced Event

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

[Visual Basic 6.0]
Event OnMapReplaced(
    ByVal newMap As Variant _
) As Empty
[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