'宣言 Public Class MdiTabGroupResizedEventArgs Inherits System.EventArgs
public class MdiTabGroupResizedEventArgs : System.EventArgs
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() ); }