See Also

SectionCollection Class  | SectionCollection Members

Language

Visual Basic

C#

Show All

section

Section to locate in the collection.

See Also Languages ActiveReports Send feedback to Data Dynamics

IndexOf Method

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

[Visual Basic]
Public Function IndexOf( _    ByVal section As Section _ ) As Integer
[C#]
public int IndexOf(    Section section );

Parameters

section

Section to locate in the collection.

Return Type

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

Example

[C#] 

private void rptDataDynamics_ReportEnd(object sender, System.EventArgs eArgs) 

    System.Windows.Forms.MessageBox.Show(this.Sections.IndexOf(this.Sections["Detail"]).ToString()); 
}

[Visual Basic] 

Private Sub rptDD_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportEnd
    MsgBox(Me.Sections.IndexOf(Me.Sections("Detail")).ToString)
End Sub

See Also

SectionCollection Class  | SectionCollection Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.