Version

TabGroupScrolled Event

Event that occurs after an MdiTabGroup is scrolled.
Syntax
'Declaration
 
Public Event TabGroupScrolled As MdiTabGroupScrolledEventHandler
public event MdiTabGroupScrolledEventHandler TabGroupScrolled
Event Data

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

PropertyDescription
ScrollIncrement (Inherited from Infragistics.Win.UltraWinTabs.TabScrolledEventArgs) 
ScrollType (Inherited from Infragistics.Win.UltraWinTabs.TabScrolledEventArgs) 
TabGroup Returns the MdiTabGroup that was scrolled
Remarks

The TabGroupScrolled is invoked after the tabs in an MdiTabGroup have been scrolled. This could be the result of clicking on a the ScrollButtons, invoking the MdiTabGroup.Scroll method, etc.

Example
The following sample demonstrates how to use the information passed to the TabGroupScrolled 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_TabGroupScrolled(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupScrolledEventArgs) Handles ultraTabbedMdiManager1.TabGroupScrolled
    ' The 'TabGroupScrolled' event is invoked after
    ' the tabs in an MdiTabGroup have been scrolled.

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

    sb.Append("TabGroupScrolled:")

    ' The 'TabGroup' returns the MdiTabGroup whose tabs
    ' were scrolled.
    sb.AppendFormat(" TabGroup = '{0}',", e.TabGroup)

    ' The 'ScrollType' parameter indicates if the user 
    ' scrolled one tab, one page of tabs, etc.
    sb.AppendFormat(" ScrollType = {0}, ScrollIncrement= {1}", e.ScrollType, e.ScrollIncrement)

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

private void ultraTabbedMdiManager1_TabGroupScrolled(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupScrolledEventArgs e)
{
	// The 'TabGroupScrolled' event is invoked after
	// the tabs in an MdiTabGroup have been scrolled.

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

	sb.Append("TabGroupScrolled:");

	// The 'TabGroup' returns the MdiTabGroup whose tabs
	// were scrolled.
	sb.AppendFormat(" TabGroup = '{0}',", e.TabGroup);

	// The 'ScrollType' parameter indicates if the user 
	// scrolled one tab, one page of tabs, etc.
	sb.AppendFormat(" ScrollType = {0}, ScrollIncrement= {1}", e.ScrollType,  e.ScrollIncrement);

	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