GrapeCity ActiveReports for .NET 16.0J
IndexOf メソッド (ControlCollection)
使用例 

GrapeCity.ActiveReports.SectionReportModel 名前空間 > ControlCollection クラス : IndexOf メソッド
コレクション内で検索するコントロール。
コントロールコレクションにおける指定したコントロールのインデックスを取得します。
シンタックス
'宣言
 
Public Function IndexOf( _
   ByVal control As ARControl _
) As Integer
public int IndexOf( 
   ARControl control
)

パラメータ

control
コレクション内で検索するコントロール。

戻り値の型

指定したコントロールのコレクション内の位置を表す、0から始まる値。

使用例
private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs)
{
    GrapeCity.ActiveReports.SectionReportModel.TextBox t = new GrapeCity.ActiveReports.SectionReportModel.TextBox();
    t.Text="テキストを入力します。";
    this.Sections[0].Controls.Add (t);
    System.Windows.Forms.MessageBox.Show (this.Sections[0].Controls.IndexOf(t).ToString()); 
}
Private Sub SectionReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Dim t As New GrapeCity.ActiveReports.SectionReportModel.TextBox
    t.Text = "テキストを入力します。"
    Me.Sections(0).Controls.Add(t)
    MessageBox.Show(Me.Sections(0).Controls.IndexOf(t))
End Sub
参照

ControlCollection クラス
ControlCollection メンバ