'宣言 Public ReadOnly Property ColScrollRegion As ColScrollRegion
public ColScrollRegion ColScrollRegion {get;}
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( ) ); }