'宣言 Public Overloads Function GetFirstVisibleCol( _ ByVal csr As ColScrollRegion, _ ByVal includeNonActivateable As Boolean _ ) As UltraGridColumn
public UltraGridColumn GetFirstVisibleCol( ColScrollRegion csr, bool includeNonActivateable )
このメソッドは、特定の列スクロールリージョンの最初 (一番左) の表示列を確認するときに使用します。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub Button144_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button144.Click Dim band As UltraGridBand = Me.UltraGrid1.DisplayLayout.Bands(0) ' Get the first visible column in the active column scroll region from this band. Dim column As UltraGridColumn = band.GetFirstVisibleCol(Me.UltraGrid1.ActiveColScrollRegion, True) ' If there is a column from band 0 visible, then write out its key. If Not column Is Nothing Then Debug.WriteLine("First visible column is " & column.Key) Else Debug.WriteLine("No column from band 0 is visible in the active col scroll region.") End If End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button144_Click(object sender, System.EventArgs e) { UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0]; // Get the first visible column in the active column scroll region from this band. UltraGridColumn column = band.GetFirstVisibleCol( this.ultraGrid1.ActiveColScrollRegion, true ); // If there is a column from band 0 visible, then write out its key. if ( null != column ) { Debug.WriteLine( "First visible column is " + column.Key ); } else { Debug.WriteLine( "No column from band 0 is visible in the active col scroll region." ); } }