See Also

ControlCollection Class  | ControlCollection Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Clear Method

Removes all controls which were added to the collection using the Add method.

[Visual Basic]
Public Sub Clear()
[C#]
public void Clear();

Remarks

To remove individual controls from the collection, use the Remove method.

Example

[C#] 

private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs) 

    this.Sections[0].Controls.Clear(); 
}

[Visual Basic] 

Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.Sections(0).Controls.Clear()
End Sub

See Also

ControlCollection Class  | ControlCollection Members

 

 


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