バージョン

Index プロパティ (UltraDataBand)

親コレクション内でのバンドのインデックスを返します。これがルートバンドの場合は親コレクションを持たないため、-1を返します。
シンタックス
'宣言
 
Public ReadOnly Property Index As Integer
public int Index {get;}
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDataSource


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim childBand As UltraDataBand = Me.UltraDataSource1.Band.ChildBands(0)

        Dim index1 As Integer = Me.UltraDataSource1.Band.ChildBands.IndexOf(childBand)
        Dim index2 As Integer = childBand.Index

        ' Following two lines should print out the same index.
        Debug.WriteLine("Index1 = " & index1)
        Debug.WriteLine("Index2 = " & index2)
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDataSource;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			UltraDataBand childBand = this.ultraDataSource1.Band.ChildBands[0];

			int index1 = this.ultraDataSource1.Band.ChildBands.IndexOf( childBand );
			int index2 = childBand.Index;

			// Following two lines should print out the same index.
			Debug.WriteLine( "Index1 = " + index1 );
			Debug.WriteLine( "Index2 = " + index2 );
		}
参照