ESRI.ArcGIS.ADF.Web.UI.WebControls
CurrentTool Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > ToolbarBase Class : CurrentTool Property




The selected Tool on this Toolbar.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("The selected Tool on this Toolbar.  Among Toolbar controls with the same Group property, only one can have a CurrentTool.")>
<ResCategoryAttribute("Data")>
<DefaultValueAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.CurrentToolEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<NotifyParentPropertyAttribute(True)>
Public Property CurrentTool As String
Visual Basic (Usage)Copy Code
Dim instance As ToolbarBase
Dim value As String
 
instance.CurrentTool = value
 
value = instance.CurrentTool
C# 
[ResDescriptionAttribute("The selected Tool on this Toolbar.  Among Toolbar controls with the same Group property, only one can have a CurrentTool.")]
[ResCategoryAttribute("Data")]
[DefaultValueAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.CurrentToolEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[NotifyParentPropertyAttribute(true)]
public string CurrentTool {get; set;}

Remarks

A Toolbar may have multiple tools, such as zoom in, pan and identify. Of all the tools on a toolbar, only one can be active at a given time, so that the map or page layout knows which tool to apply when the user clicks on the map or page layout. The CurrentTool property contains the ID of the tool to apply to the map or page layout.

Multiple toolbars may be buddied to the same map or page layout, by have the same Group setting (see also Toolbar.FindToolbarGroupsBuddiedTo). When the user sets the CurrentTool for a toolbar in a group, the CurrentTool setting for all the other toolbars in the group are cleared. Hence CurrentTool may be empty if a tool on another toolbar in the group has been selected.

See Also

© 2010 All Rights Reserved.