ActiveReports3 Request technical support
Add Method
See Also  Example


control
The ARControl to add to the collection.
Adds the specified control to the control collection.

Syntax

Visual Basic (Declaration) 
Public Sub Add( _
   ByVal control As ARControl _
) 
Visual Basic (Usage)Copy Code
Dim instance As ControlCollection
Dim control As ARControl
 
instance.Add(control)
C# 
public void Add( 
   ARControl control
)

Parameters

control
The ARControl to add to the collection.

Example

C#Copy Code
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs)
{
   DataDynamics.ActiveReports.TextBox t =
new DataDynamics.ActiveReports.TextBox();
   t.Text=
"Insert text here.";
   
this.Sections[0].Controls.Add (t);
}
Visual BasicCopy Code
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Dim t As New DataDynamics.ActiveReports.TextBox
    t.Text = "Insert text here."
    Me.Sections(0).Controls.Add(t)
End Sub

Remarks

The Add method adds the control to the end of the collection.

See Also