Version

TabGroupResized Event

Event that occurs after an MdiTabGroup is resized.
Syntax
'Declaration
 
Public Event TabGroupResized As MdiTabGroupResizedEventHandler
public event MdiTabGroupResizedEventHandler TabGroupResized
Event Data

The event handler receives an argument of type MdiTabGroupResizedEventArgs containing data related to this event. The following MdiTabGroupResizedEventArgs properties provide information specific to this event.

PropertyDescription
TabGroups Collection of MdiTabGroup instances that have been resized.
Remarks

The TabGroupResized is invoked after the Extent of one or more MdiTabGroup objects have been modified. This could be as a result of a splitter drag (SplitterDragging), resizing the mdi client, creating a new MdiTabGroup, removing an existing MdiTabGroup or explicitly setting the Extent or ClientExtent.

Example
The following sample demonstrates how to use the information passed to the TabGroupResized event.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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

Private Sub ultraTabbedMdiManager1_TabGroupResized(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupResizedEventArgs) Handles ultraTabbedMdiManager1.TabGroupResized
    ' The 'TabGroupResized' event is invoked after the Extent of 
    ' one or more MdiTabGroup objects has been modified.
    '

    Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder()

    sb.Append("TabGroupResized:")

    Dim i As Integer
    For i = 0 To e.TabGroups.Count - 1 Step +1
        ' The 'TabGroups' parameter returns a collection
        ' of one or more MdiTabGroup objects that have had
        ' its Extent modified.
        '
        Dim tabGroup As MdiTabGroup = e.TabGroups(i)

        sb.AppendFormat(" [#{0}] TabGroup ({1}) was resized. Extent = {2} ClientExtent = {3};", i, tabGroup, tabGroup.Extent, tabGroup.ClientExtent)
    Next

    System.Diagnostics.Debug.WriteLine(sb.ToString())
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;
using Infragistics.Win.UltraWinTabbedMdi;

private void ultraTabbedMdiManager1_TabGroupResized(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupResizedEventArgs e)
{
	// The 'TabGroupResized' event is invoked after the Extent of 
	// one or more MdiTabGroup objects has been modified.
	//

	System.Text.StringBuilder sb = new System.Text.StringBuilder();

	sb.Append("TabGroupResized:");

	for(int i = 0; i < e.TabGroups.Count; i++)
	{
		// The 'TabGroups' parameter returns a collection
		// of one or more MdiTabGroup objects that have had
		// its Extent modified.
		//
		MdiTabGroup tabGroup = e.TabGroups[i];

		sb.AppendFormat( " [#{0}] TabGroup ({1}) was resized. Extent = {2} ClientExtent = {3};", i, tabGroup, tabGroup.Extent, tabGroup.ClientExtent);
	}

	System.Diagnostics.Debug.WriteLine( sb.ToString() );
}
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