ActiveReports 18 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / ControlCollection Class / Clear Method
Example

In This Topic
    Clear Method (ControlCollection)
    In This Topic
    Removes all controls which were added to the collection using the Add method.
    Syntax
    'Declaration
     
    Public Shadows Sub Clear() 
    public new void Clear()
    Remarks
    To remove individual controls from the collection, use the GrapeCity.ActiveReports~GrapeCity.ActiveReports.SectionReportModel.ControlCollection~Remove.html method.
    Example
    private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs)
    {
        this.Sections[0].Controls.Clear();
    }
    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