Version

UltraExplorerBarGroupsCollection Class

The UltraWinExplorerBarGroups collection contains all of the UltraExplorerBarGroup objects that have been defined for the control. You can use this collection to programmatically access any Group in the control, or to enumerate through the groups.
Syntax
'Declaration
 
Public Class UltraExplorerBarGroupsCollection 
   Inherits Infragistics.Shared.KeyedSubObjectsCollectionBase
public class UltraExplorerBarGroupsCollection : Infragistics.Shared.KeyedSubObjectsCollectionBase 
Example
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
		Next

	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;
			}
		}
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