ActiveReports3 Request technical support
Contains Method
See Also  Example


section

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

Determines whether the specified section object exists in the collection.

Syntax

Visual Basic (Declaration) 
Public Function Contains( _
   ByVal section As Section _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SectionCollection
Dim section As Section
Dim value As Boolean
 
value = instance.Contains(section)
C# 
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

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