See Also

ControlCollection Class  | ControlCollection Members  | AddRange

Language

Visual Basic

C#

Show All

control
The control to add to the collection.
See Also Languages ActiveReports Send feedback to Data Dynamics

Add Method

Adds the specified control to the control collection.

[Visual Basic]
Public Sub Add( _    ByVal control As ARControl _ )
[C#]
public void Add(    ARControl control );

Parameters

control
The control to add to the collection.

Remarks

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

Example

[C#] 

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 Basic] 

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

See Also

ControlCollection Class  | ControlCollection Members  | AddRange

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.