Parameters
- control
- The ARControl to add to the collection.
The Add method adds the control to the end of the collection.
C# | Copy Code |
---|---|
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); } |
Visual Basic | Copy Code |
---|---|
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) End Sub |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
ControlCollection ClassControlCollection Members
ActiveReports6~GrapeCity.ActiveReports.ControlCollection~AddRange