ActiveReports3 Request technical support
Clear Method
See Also  Example


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

Syntax

Visual Basic (Declaration) 
Public Sub Clear() 
Visual Basic (Usage)Copy Code
Dim instance As ControlCollection
 
instance.Clear()
C# 
public void Clear()

Example

C#Copy Code
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs)
{
   
this.Sections[0].Controls.Clear();
}
Visual BasicCopy Code
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.Sections(0).Controls.Clear()
End Sub

Remarks

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

See Also