Groups Property

Public ReadOnly Property Groups As UltraExplorerBarGroupsCollection
public UltraExplorerBarGroupsCollection Groups {get;}

This property exposes the control's collection of UltraExplorerBarGroup objects. A group contains zero or more UltraExplorerBarItem objects, or a UltraExplorerBarContainerControl. Settings can be specified on an individual group, or default group settings can be set on the GroupSettings property.

The following code demonstrates how to use the control's Groups property to access a collection of all the Groups defined to the control.

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

	Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button7.Click

		' Count the total number of items in all Groups.
		Dim totalItems As Integer = 0

		Dim group As UltraExplorerBarGroup
		For Each group In Me.ultraExplorerBar1.Groups
			totalItems += group.Items.Count

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

		private void button7_Click(object sender, System.EventArgs e)
			// Count the total number of items in all Groups.
			int totalItems = 0;

			foreach(UltraExplorerBarGroup group in this.ultraExplorerBar1.Groups)
				totalItems += group.Items.Count;

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