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




The group to which this Toolbar belongs. A group of Toolbar controls can have only one CurrentTool among them. The Group property cannot be set to null or or to an empty string.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<ResDescriptionAttribute("The group to which this Toolbar belongs.  A group of Toolbar controls can have only one CurrentTool among them.  The Group property cannot be set to null or or to an empty string.")>
<ResCategoryAttribute("Data")>
<NotifyParentPropertyAttribute(True)>
<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.ToolbarGroupEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
Public Property Group As String
Visual Basic (Usage)Copy Code
Dim instance As ToolbarBase
Dim value As String
 
instance.Group = value
 
value = instance.Group
C# 
[DefaultValueAttribute()]
[ResDescriptionAttribute("The group to which this Toolbar belongs.  A group of Toolbar controls can have only one CurrentTool among them.  The Group property cannot be set to null or or to an empty string.")]
[ResCategoryAttribute("Data")]
[NotifyParentPropertyAttribute(true)]
[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.ToolbarGroupEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
public string Group {get; set;}

Remarks

When a toolbar joins a group with a CurrentTool, it loses its own CurrentTool setting. When you use the Group property to group toolbars, you are responsible for ensuring that Tool names are unique across the whole group. You are also responsible for ensuring that the buddy controls of all the toolbars in a group match.

See Also

© 2010 All Rights Reserved.