Returns the active ColScrollRegion object.
Following code shows that GetActiveColScrollRegion method and ActiveColScrollRegion return the same objects.
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics
Private Sub Button70_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button70.Click
' ActiveColScrollRegion and GetActiveColScrollRegion return the same object.
Dim colScrollRegion1 As ColScrollRegion = Me.UltraGrid1.ActiveColScrollRegion
Dim colScrollRegion2 As ColScrollRegion = Me.UltraGrid1.GetActiveColScrollRegion(True)
' Write out if both of these objects are the same.
Debug.WriteLine("ActiveColScrollRegion == GetActiveColScrollRegion: " & (colScrollRegion1 Is colScrollRegion2))
End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;
private void button70_Click(object sender, System.EventArgs e)
{
// ActiveColScrollRegion and GetActiveColScrollRegion return the same object.
ColScrollRegion colScrollRegion1 = this.ultraGrid1.ActiveColScrollRegion;
ColScrollRegion colScrollRegion2 = this.ultraGrid1.GetActiveColScrollRegion( true );
// Write out if both of these objects are the same.
Debug.WriteLine( "ActiveColScrollRegion == GetActiveColScrollRegion: " + ( colScrollRegion1 == colScrollRegion2 ) );
}
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2