Version

Group Property (UltraExplorerBarItem)

Returns a reference to the UltraExplorerBarGroup that this UltraExplorerBarItem belongs to.
Syntax
'Declaration
 
Public ReadOnly Property Group As UltraExplorerBarGroup
public UltraExplorerBarGroup Group {get;}
Example
The following code iterates through all items in the last group looking for the first one that is active or disabled.

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


	Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button38.Click

		' Find the first item in the last group that is Active or disabled and display its text.
		If (Me.ultraExplorerBar1.Groups.Count < 1) Then
			Return
		End If


		' Get the last Group.
		Dim lastGroup As UltraExplorerBarGroup = Me.ultraExplorerBar1.Groups(Me.ultraExplorerBar1.Groups.Count - 1)

		If (Not lastGroup Is Nothing) Then
			' Iterate thru each of its Items looking for an Item that is Active or disabled.
			Dim item As UltraExplorerBarItem

			For Each item In lastGroup.Items
				If (item.Active = True Or item.SettingsResolved.Enabled = False) Then
					Debug.WriteLine(String.Format("The first item in the last group (i.e., group '{0}') that is Active or Disabled is: '{1}'", item.Group.Text, item.Text))

					Exit For
				End If
			Next
		End If

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


		private void button38_Click(object sender, System.EventArgs e)
		{
			// Find the first item in the last group that is Active or disabled and display its text.
			if (this.ultraExplorerBar1.Groups.Count < 1)
				return;


			// Get the last Group.
			UltraExplorerBarGroup lastGroup = this.ultraExplorerBar1.Groups[this.ultraExplorerBar1.Groups.Count - 1];

			if (lastGroup != null)
			{
				// Iterate thru each of its Items looking for an Item that is Active or disabled.
				foreach(UltraExplorerBarItem item in lastGroup.Items)
				{
					if (item.Active						== true  ||
						item.SettingsResolved.Enabled	== false)
					{
						Debug.WriteLine(string.Format("The first item in the last group (i.e., group '{0}') that is Active or Disabled is: '{1}'", item.Group.Text, item.Text));

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