Version

Tabs Property

Returns a read only collection of MdiTab instances contained by the tabgroup.
Syntax
'Declaration
 
Public ReadOnly Property Tabs As MdiTabsCollection
public MdiTabsCollection Tabs {get;}
Remarks

The Tabs collection is a collection of the MdiTab objects displayed by the MdiTabGroup. The order of the items in the collection determines the order in which the tabs are displayed. The tab positions, sizes and display is managed by the TabManager.

The collection returned by the property is read only. There are several methods on the MdiTabGroup, MdiTab and UltraTabbedMdiManager for rearranging and reposition MdiTab objects. The MoveAllTabs method may be used to move all the items in the Tabs collection to the Tabs collection of a different MdiTabGroup. To move individual items, the MdiTab.MoveToGroup and MdiTab.MoveToNewGroup methods may be used. Alternatively, there are similar methods on the UltraTabbedMdiManager itself that can change the position or tab group that contains particular MdiTab objects.

Example
The following example demonstrates how to show all the hidden tabs.

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

Private Sub miShowAll_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles miShowAll.Click
    If Not Me.ultraTabbedMdiManager1.HasHiddenTabs Then
        Return
    End If

    Dim tabs() As MdiTab = CType(Me.ultraTabbedMdiManager1.HiddenTabs.All, MdiTab())

    Me.ultraTabbedMdiManager1.BeginUpdate()

    Dim tab As MdiTab
    For Each tab In tabs
        tab.Form.Show()
    Next

    Me.ultraTabbedMdiManager1.EndUpdate()
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;
using Infragistics.Win.UltraWinTabbedMdi;

private void miShowAll_Click(object sender, System.EventArgs e)
{
	if (!this.ultraTabbedMdiManager1.HasHiddenTabs)
		return;

	MdiTab[] tabs = (MdiTab[])this.ultraTabbedMdiManager1.HiddenTabs.All;

	this.ultraTabbedMdiManager1.BeginUpdate();

	foreach(MdiTab tab in tabs)
		tab.Form.Show();

	this.ultraTabbedMdiManager1.EndUpdate();
}
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