ESRI.ArcGIS.ADF.Web.UI.WebControls
FindToolbarGroupsBuddiedTo Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Toolbar Class : FindToolbarGroupsBuddiedTo Method




buddyControlID
ID of the control with toolbars buddied. Either a Map or a PageLayout control.
page
Page containing the toolbars and buddy control.
Static method that gets the names of toolbar groups that are buddied to the control specified.

Syntax

Visual Basic (Declaration) 
Public Shared Function FindToolbarGroupsBuddiedTo( _
   ByVal buddyControlID As String, _
   ByVal page As Page _
) As String()
Visual Basic (Usage)Copy Code
Dim buddyControlID As String
Dim page As Page
Dim value() As String
 
value = Toolbar.FindToolbarGroupsBuddiedTo(buddyControlID, page)
C# 
public static string[] FindToolbarGroupsBuddiedTo( 
   string buddyControlID,
   Page page
)

Parameters

buddyControlID
ID of the control with toolbars buddied. Either a Map or a PageLayout control.
page
Page containing the toolbars and buddy control.

Return Value

Array of strings with toolbar group names.

Remarks

A Toolbar is buddied either to a Map control or to a PageLayout control. Multiple toolbars may be buddied to a Map or PageLayout. These toolbars may be grouped so that if a tool is activated on one toolbar, all tools on all grouped toolbars are deactivated. This is done by specifying the same value for the Toolbar.Group property for each toolbar.

This method finds all toolbar groups for a specified Map or PageLayout control. Since it is a static method, it is not necessary to use a specific toolbar instance to use the method.

See Also

© 2010 All Rights Reserved.