Version

MdiTabGroupsCollection Class

A read only collection of MdiTabGroup objects.
Syntax
'Declaration
 
Public Class MdiTabGroupsCollection 
   Inherits Infragistics.Shared.KeyedSubObjectsCollectionBase
public class MdiTabGroupsCollection : Infragistics.Shared.KeyedSubObjectsCollectionBase 
Remarks

The MdiTabGroupsCollection is a read only collection of MdiTabGroup objects. Each MdiTabGroup object in the collection may be accessed using either the index or Key.

The MdiTabGroupsCollection is used by the UltraTabbedMdiManager (UltraTabbedMdiManager.TabGroups) to expose the collection of MdiTabGroups that contain the visible MdiTab objects. The collection is also used by MdiTabGroupResizingEventArgs and MdiTabGroupResizedEventArgs classes to expose the collection of tab groups that have been resized.

Example
The following example demonstrates how to iterate the tab groups and their tabs as well as activate a tab item.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTabs
Imports Infragistics.Win.UltraWinTabbedMdi

Private Sub ActivateCustomTab()
    ' iterate through all the tab groups
    Dim tabGroup As MdiTabGroup
    For Each tabGroup In Me.ultraTabbedMdiManager1.TabGroups
        ' iterate through all the tab objects 
        ' contained within the tab group
        Dim tab As MdiTab
        For Each tab In tabGroup.Tabs
            ' if the tab is not a custom tab, i.e.
            ' it does not represent a form that implements
            ' the ICustomMdiTab interface. this interface
            ' is implemented by an ultradockmanager
            ' mdi child form but could be used by other
            ' forms
            If tab.IsCustomTab Then
                ' activate the first one
                tab.Activate()
                Return
            End If
        Next
    Next
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;
using Infragistics.Win.UltraWinTabbedMdi;

private void ActivateCustomTab()
{
	// iterate through all the tab groups
	foreach(MdiTabGroup tabGroup in this.ultraTabbedMdiManager1.TabGroups)
	{
		// iterate through all the tab objects 
		// contained within the tab group
		foreach(MdiTab tab in tabGroup.Tabs)
		{
			// if the tab is not a custom tab, i.e.
			// it does not represent a form that implements
			// the ICustomMdiTab interface. this interface
			// is implemented by an ultradockmanager
			// mdi child form but could be used by other
			// forms
			if (!tab.IsCustomTab)
				continue;

			// activate the first one
			tab.Activate();
			return;
		}
	}
}
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