ESRI.ArcGIS.ADF.Web.UI.WebControls
Toolbar Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : Toolbar Class




A Toolbar is a collection of Tools and Commands that work on a set of Map controls or a set of PageLayout controls.

Object Model





Syntax

Visual Basic (Declaration) 
<ToolboxDataAttribute("<{0}:Toolbar runat='server' Height='50px' Width='400px'></{0}:Toolbar>")>
<DefaultPropertyAttribute("ToolbarItems")>
<ToolboxBitmapAttribute()>
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ToolbarDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<DefaultEventAttribute("CommandClick")>
Public Class Toolbar 
   Inherits ToolbarBase
   Implements IBuddyControlSupport 
Visual Basic (Usage)Copy Code
Dim instance As Toolbar
C# 
[ToolboxDataAttribute("<{0}:Toolbar runat='server' Height='50px' Width='400px'></{0}:Toolbar>")]
[DefaultPropertyAttribute("ToolbarItems")]
[ToolboxBitmapAttribute()]
[DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ToolbarDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[DefaultEventAttribute("CommandClick")]
public class Toolbar : ToolbarBase, IBuddyControlSupport  

Remarks

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.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         ESRI.ArcGIS.ADF.Web.UI.WebControls.WebControl
            ESRI.ArcGIS.ADF.Web.UI.WebControls.ToolbarBase
               ESRI.ArcGIS.ADF.Web.UI.WebControls.Toolbar
                  ESRI.ArcGIS.ADF.ArcGISServer.Editor.Tools.EditorToolbar

See Also

© 2010 All Rights Reserved.