ArcObjects Library Reference (Controls)  

ControlsMapRoamTool CoClass

Click the mouse left button to start or finish roaming, move the mouse to change roaming direction and speed.

Product Availability

Available with ArcGIS Engine.

Description

The CLSID of this command is: {FF1B7D16-F4DB-4D1C-AC7B-AEC730C0ED17}.

This command works with the ToolbarControl, PageLayoutControl, MapControl and ArcMap.

This command requires that the IDynamicMap::DynamicMapEnabled property is True.

Interfaces

Interfaces Description
ICommand (esriSystemUI) Provides access to members that define a COM command.
IDynamicMapEvents (esriDisplay) Provides access to events that occur when the state of the dynamic display changes.
ITool (esriSystemUI) Provides access to members that define a tool.
[C#]
IDynamicMap dynamicMap = AxMapControl1.Map as IDynamicMap; 
dynamicMap.DynamicMapEnabled = true;
[Visual Basic .NET]

Dim dynamicMap As IDynamicMap
dynamicMap = AxMapControl1.Map
dynamicMap.DynamicMapEnabled = True