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

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

    Parameters

    item
    A Layer object to locate in the LayerCollection.

    Return Value

    An System.Int32 value indicating the index of the entry if it was found in the collection; otherwise, -1.
    Example
    LayerCollection collection = new LayerCollection(_report);
    Layer layer = new Layer("Layer1");
    int index = collection.IndexOf(layer);
    See Also