'宣言 Public Delegate Sub MdiTabGroupScrolledEventHandler( _ ByVal sender As Object, _ ByVal e As MdiTabGroupScrolledEventArgs _ )
public delegate void MdiTabGroupScrolledEventHandler( object sender, MdiTabGroupScrolledEventArgs e )
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() ); }