[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.LayerCollection.IndexOf

IndexOf Method

IndexOf(Layer)

Determines the index of a specific Layer object in the LayerCollection.

Declaration
public int IndexOf(Layer item)
Parameters
Type Name Description
Layer item

A Layer object to locate in the LayerCollection.

Returns
Type Description
int

An int value indicating the index of the entry if it was found in the collection; otherwise, -1.

Implements
Examples
LayerCollection collection = new LayerCollection(_report);
Layer layer = new Layer("Layer1");
int index = collection.IndexOf(layer);