ActiveReports Developer 7
Clear Method
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > ControlCollection Class : Clear Method

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Shadows Sub Clear() 
C# 
public new void Clear()

Remarks

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

Example

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

See Also