Version

UltraExplorerBarGroup Class

The UltraExplorerBarGroup object represents a sliding group in the UltraExplorerBar interface. Each UltraWinExplorerBar contains one or more groups. They are used to organize the interface elements that make up the primary UI of the control.

Each group can contain either UltraExplorerBarItem objects or WinForms controls. The group can be set to one of several Styles, which determine how the items in the group will appear. Note that many of the Group's settings are not set directly on the UltraExplorerBarGroup object itself, but on the associated UltraExplorerBarGroupSettings object, which encapsulates the appearance and behavior settings that can be applied to the group.

Syntax
'Declaration
 
Public Class UltraExplorerBarGroup 
   Inherits Infragistics.Shared.KeyedSubObjectBase
   Implements Infragistics.Shared.IKeyedSubObject, Infragistics.Shared.IKeyedSubObjectEx, Infragistics.Shared.ISelectableItem, Infragistics.Win.Notifications.INotificationBadgeProvider 
public class UltraExplorerBarGroup : Infragistics.Shared.KeyedSubObjectBase, Infragistics.Shared.IKeyedSubObject, Infragistics.Shared.IKeyedSubObjectEx, Infragistics.Shared.ISelectableItem, Infragistics.Win.Notifications.INotificationBadgeProvider  
Example
The following code shows how to use the various overloads of the Groups colllection Add Method.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button83_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button83.Click

		' Add groups to the Groups collection using the different overloads.

		' Groups.Add()
		Dim group As UltraExplorerBarGroup = Me.ultraExplorerBar1.Groups.Add()

		group.Text = "FirstGroupAdded"


		' Groups.Add(UltraExplorerBarGroup group)
		group = New UltraExplorerBarGroup("SecondGroupKey")
		group.Text = "SecondGroupAdded"

		Dim index As Integer = Me.ultraExplorerBar1.Groups.Add(group)


		' Groups.Add(string Key, string Text)
		group = Me.ultraExplorerBar1.Groups.Add("ThirdGroupKey", "ThirdGroup")


		' Groups.Add(string Key)
		group = Me.ultraExplorerBar1.Groups.Add("FourthGroupKey")


		' Groups.Add(string Key)
		Dim group1 As UltraExplorerBarGroup = New UltraExplorerBarGroup()
		Dim group2 As UltraExplorerBarGroup = New UltraExplorerBarGroup()
		Dim group3 As UltraExplorerBarGroup = New UltraExplorerBarGroup()
		Dim group4 As UltraExplorerBarGroup = New UltraExplorerBarGroup()

		Me.ultraExplorerBar1.Groups.AddRange(New UltraExplorerBarGroup() {group1, group2, group3, group4})

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button83_Click(object sender, System.EventArgs e)
		{
			// Add groups to the Groups collection using the different overloads.

			// Groups.Add()
			UltraExplorerBarGroup group = this.ultraExplorerBar1.Groups.Add();

			group.Text = "FirstGroupAdded";


			// Groups.Add(UltraExplorerBarGroup group)
			group		= new UltraExplorerBarGroup("SecondGroupKey");
			group.Text	= "SecondGroupAdded";

			int index	= this.ultraExplorerBar1.Groups.Add(group);


			// Groups.Add(string Key, string Text)
			group = this.ultraExplorerBar1.Groups.Add("ThirdGroupKey", "ThirdGroup");


			// Groups.Add(string Key)
			group = this.ultraExplorerBar1.Groups.Add("FourthGroupKey");


			// Groups.Add(string Key)
			UltraExplorerBarGroup group1	= new UltraExplorerBarGroup();
			UltraExplorerBarGroup group2	= new UltraExplorerBarGroup();
			UltraExplorerBarGroup group3	= new UltraExplorerBarGroup();
			UltraExplorerBarGroup group4	= new UltraExplorerBarGroup();
			this.ultraExplorerBar1.Groups.AddRange(new UltraExplorerBarGroup [] { group1, group2, group3, group4 } );

		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also