ESRI.ArcGIS.Mobile
CurrentMapAction Property
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > Map Class : CurrentMapAction Property

Gets or sets the current MapAction used by the map.

Syntax

Visual Basic (Declaration) 
<DesignerSerializationVisibilityAttribute()>
<BrowsableAttribute(False)>
Public Property CurrentMapAction As MapAction
C# 
[DesignerSerializationVisibilityAttribute()]
[BrowsableAttribute(false)]
public MapAction CurrentMapAction {get; set;}

Return Value

ESRI.ArcGIS.Mobile.MapActions.MapAction

Remarks

A map could have a list of available MapActions, such as PanMapAction, ZoomInMapAction, etc.. You can get or modify the list by Map.MapActions property, at design time or runtime. However, only one MapAction could be active at one time. You can set a MapAction as the current MapAction through Map.CurrentMapAction property, or you can make a MapAction active by setting Map.CurrentMapActionIndex.

A MapAction object needs to be available before you can assign it to this property.

To detach all MapActions from the map, simple set the map's CurrentMapAction property to null (in C#) or Nothing (in VB.Net).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also