バージョン

Height プロパティ (RowScrollRegion)

コンテナー ユニット内のオブジェクトの高さを返すか設定します。
シンタックス
'宣言
 
Public Property Height As Integer
public int Height {get; set;}
解説

Height プロパティは、オブジェクトの縦のサイズを決定します。このサイズは通常オブジェクトのコンテナーの座標系で表されますが、ピクセルで指定することも可能です。

RowScrollRegion オブジェクトについては、このプロパティは常に ColScrollRegion の垂直スクロールバーの Width を含みます。

使用例
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( "" );
	}

}
参照