![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
Toolbar Class | |
Members See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : Toolbar Class |

Visual Basic (Declaration) | |
---|---|
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ToolbarDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")> <ToolboxDataAttribute("<{0}:Toolbar runat='server' Height='50px' Width='400px'></{0}:Toolbar>")> <ToolboxBitmapAttribute()> <DefaultPropertyAttribute("ToolbarItems")> <DefaultEventAttribute("CommandClick")> Public Class Toolbar Inherits ToolbarBase Implements IBuddyControlSupport |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Toolbar |
C# | |
---|---|
[DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ToolbarDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")] [ToolboxDataAttribute("<{0}:Toolbar runat='server' Height='50px' Width='400px'></{0}:Toolbar>")] [ToolboxBitmapAttribute()] [DefaultPropertyAttribute("ToolbarItems")] [DefaultEventAttribute("CommandClick")] public class Toolbar : ToolbarBase, IBuddyControlSupport |
Toolbar class extends the abstract class ToolbarBase, which contains most of the properties and methods for the Toolbar.
A Toolbar control is "buddied" to (associated with) either a Map control or a PageLayout control. The type of buddy is determined by the BuddyControlType property, which is set to either Map or PageLayout. A Toolbar may actually be buddied to multiple controls of one of these types, so that a tool on a toolbar could control multiple maps. However, a Toolbar may only be buddied to a single BuddyControlType, either Map or PageLayout.
A toolbar contains one or more tools or commands in its ToolbarItems collection. These tools and commands typically interact with the map, for example to zoom in or identify features on the map. Custom Toolbar items may perform any client-side and/or server-side work.
The toolbar use the client callback approach to perform work on the server. The ToolbarBase extends the Web ADF WebControl class, which has enhanced ways to use client callbacks. See the WebControl's CallbackResults property and the CallbackResult class for more discussion on using callback results.
Target 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