'宣言 Public Delegate Sub ColScrollRegionEventHandler( _ ByVal sender As Object, _ ByVal e As ColScrollRegionEventArgs _ )
public delegate void ColScrollRegionEventHandler( object sender, ColScrollRegionEventArgs e )
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub UltraGrid1_AfterColRegionSize(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.ColScrollRegionEventArgs) Handles ultraGrid1.AfterColRegionSize Debug.WriteLine("AfterColRegionSize: new width of the column scroll region is " & e.ColScrollRegion.Width.ToString()) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraGrid1_AfterColRegionSize(object sender, Infragistics.Win.UltraWinGrid.ColScrollRegionEventArgs e) { Debug.WriteLine( "AfterColRegionSize: new width of the column scroll region is " + e.ColScrollRegion.Width.ToString( ) ); }