GrapeCity.ActiveReports.v9 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > ControlCollection Class : IndexOf Method |
private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs) { GrapeCity.ActiveReports.SectionReportModel.TextBox t = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); t.Text="Insert text here."; 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 = "Insert text here." Me.Sections(0).Controls.Add(t) MessageBox.Show(Me.Sections(0).Controls.IndexOf(t)) End Sub