バージョン

BandOrigin 列挙体

バンドの原点を計算するときにバンドのどの部分を含めるかを指定する列挙体。
シンタックス
'宣言
 
Public Enum BandOrigin 
   Inherits System.Enum
public enum BandOrigin : System.Enum 
メンバ
メンバ解説
PreRowAreaPre-Row 領域。行プレビュー領域の左端は、基点を決めるために使用されます。
RowCellAreaセル領域。一番左のセルの左端は、基点を決めるために使用されます。
RowSelector行セレクター。レコードセレクターの左端は、基点を決めるために使用されます。
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub Button112_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button112.Click

       Dim bands As BandsCollection = Me.UltraGrid1.DisplayLayout.Bands

       ' Loop through all the bands.
       Dim band As UltraGridBand
       For Each band In bands
           ' Get the origin and the extent.
           Dim origin As Integer = band.GetOrigin(BandOrigin.PreRowArea)
           Dim extent As Integer = band.GetExtent(BandOrigin.PreRowArea)

           ' Write out the origin and the extent.
           Debug.WriteLine("bands(" & band.Index & ") Origin = " & origin & ", Extent = " & extent)
       Next

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

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

	BandsCollection bands = this.ultraGrid1.DisplayLayout.Bands;

	// Loop through all the bands.
	foreach ( UltraGridBand band in bands )
	{
		// Get the origin and the extent.
		int origin = band.GetOrigin( BandOrigin.PreRowArea );
		int extent = band.GetExtent( BandOrigin.PreRowArea );				
		
		// Write out the origin and the extent.
		Debug.WriteLine( "bands[" + band.Index + "] Origin = " + origin + ", Extent = " + extent );
	}

}
参照