Version

Height Property (ColScrollRegion)

Returns or sets the height of an object in container units.
Syntax
'Declaration
 
Public ReadOnly Property Height As Integer
public int Height {get;}
Remarks

The Height property is used to determine the vertical dimension of an object. It is generally expressed in the scale mode of the object's container, but can also be specified in pixels.

For the ColScrollRegion object, this property returns the height available to row data. This value excludes the height of the grid's outer border. The height occupied by the scrollbars does not affect the value of this property.

Example
Following code loops through all the row scroll regions and column scroll regions and prints out the matrix of the scroll regions. A scroll region is formed by the intersection of a row scroll region and a column scroll region. So if there were 2 column scroll regions and 2 row scroll regions, there would be total of 4 scroll regions formed by their intersections.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub Button135_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button135.Click

       Debug.WriteLine("Scroll regions and their dimensions: ")

       ' Loop throgh the row scroll regions.
       Dim i As Integer
       For i = 0 To Me.UltraGrid1.DisplayLayout.RowScrollRegions.Count - 1
           Dim rowRegion As RowScrollRegion = Me.UltraGrid1.DisplayLayout.RowScrollRegions(i)

           ' Loop through the col scroll regions.
           Dim j As Integer
           For j = 0 To Me.UltraGrid1.DisplayLayout.ColScrollRegions.Count - 1
               Dim colRegion As ColScrollRegion = Me.UltraGrid1.DisplayLayout.ColScrollRegions(j)

               ' Get the left and the width from the column scroll region.
               Dim left As Integer = colRegion.Left
               Dim width As Integer = colRegion.Width

               ' Get the top and the height from the row scroll region.
               Dim top As Integer = rowRegion.Top
               Dim height As Integer = rowRegion.Height

               Dim scrollRegionRect As Rectangle = New Rectangle(left, top, width, height)

               ' Print out the scroll region in the form of indexes of the row scroll region and the 
               ' col scroll region whose intersection forms the scroll region and its dimension.
               Debug.Write("    (" & rowRegion.Index & ", " & colRegion.Index & ") " & scrollRegionRect.ToString())
           Next
           Debug.WriteLine("")
       Next

   End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button135_Click(object sender, System.EventArgs e)
{

	Debug.WriteLine( "Scroll regions and their dimensions: " );

	// Loop throgh the row scroll regions.
	for ( int i = 0; i < this.ultraGrid1.DisplayLayout.RowScrollRegions.Count; i++ )
	{
		RowScrollRegion rowRegion = this.ultraGrid1.DisplayLayout.RowScrollRegions[i];				

		// Loop through the col scroll regions.
		for ( int j = 0; j < this.ultraGrid1.DisplayLayout.ColScrollRegions.Count; j++ )
		{
			ColScrollRegion colRegion = this.ultraGrid1.DisplayLayout.ColScrollRegions[j];

			// Get the left and the width from the column scroll region.
			int left	= colRegion.Left; 
			int width	= colRegion.Width;

			// Get the top and the height from the row scroll region.
			int top		= rowRegion.Top;
			int height	= rowRegion.Height;

			Rectangle scrollRegionRect = new Rectangle( left, top, width, height );

			// Print out the scroll region in the form of indexes of the row scroll region and the 
			// col scroll region whose intersection forms the scroll region and its dimension.
			Debug.Write( "    (" + rowRegion.Index + ", " + colRegion.Index + ") " + scrollRegionRect.ToString( ) );
		}
		Debug.WriteLine( "" );
	}

}
Requirements

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

See Also