ActiveReports3 Request technical support
IndexOf Method
See Also  Example


section

Determines the specific index of the specified section in the collection.


Section to locate in the collection.

Syntax

Visual Basic (Declaration) 
Public Function IndexOf( _
   ByVal section As Section _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As SectionCollection
Dim section As Section
Dim value As Integer
 
value = instance.IndexOf(section)
C# 
public int IndexOf( 
   Section section
)

Parameters

section

Return Value

The index of the section in the collection if found; otherwise -1.

Example

C#Copy Code
private void rptDataDynamics_ReportEnd(object sender, System.EventArgs eArgs)
{
   System.Windows.Forms.MessageBox.Show(
this.Sections.IndexOf(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.IndexOf(Me.Sections("Detail1")).ToString)
End Sub

See Also