ActiveReports 18 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports Namespace / SectionCollection Class / Contains Method

Specifies the Section object to be searched for in the collection.

Example

In This Topic
    Contains Method (SectionCollection)
    In This Topic
    Determines whether the specified section object exists in the collection.
    Syntax
    'Declaration
     
    Public Function Contains( _
       ByVal section As Section _
    ) As Boolean
    public bool Contains( 
       Section section
    )

    Parameters

    section

    Specifies the Section object to be searched for in the collection.

    Return Value

    Boolean. Returns True if the section exists in the collection; otherwise, False.
    Example
    private void rpt_ReportEnd(object sender, System.EventArgs eArgs)
    {
        System.Windows.Forms.MessageBox.Show(this.Sections.Contains(this.Sections["detail"]).ToString());
    }
    Private Sub rpt_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportEnd
        MsgBox(Me.Sections.Contains(Me.Sections("Detail1")).ToString)
    End Sub
    See Also