ActiveReports 8
Contains Method
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionCollection Class : Contains Method

section

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

Glossary Item Box

Determines whether the specified section object exists in the collection.

Syntax

Visual Basic (Declaration) 
Public Function Contains( _
   ByVal section As Section _
) As System.Boolean
C# 
public System.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

C#Copy Code
private void rpt_ReportEnd(object sender, System.EventArgs eArgs)
{
    System.Windows.Forms.MessageBox.Show(this.Sections.Contains(this.Sections["detail"]).ToString());
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also