ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / PageCollection Class / IndexOf Method
A Page object to locate in the PageCollection.
Example

In This Topic
    IndexOf Method (PageCollection)
    In This Topic
    Determines the index of a specific Page object in the PageCollection.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal item As Page _
    ) As Integer
    public int IndexOf( 
       Page item
    )

    Parameters

    item
    A Page object to locate in the PageCollection.

    Return Value

    An System.Int32 value indicating the index of the entry if it was found in the collection; otherwise, -1.
    Example
    PageCollection collection = new PageCollection();
    Page page = new Page();
    int index = collection.IndexOf(page);
    See Also