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
.-1
.LayerCollection collection = new LayerCollection(_report); Layer layer = new Layer("Layer1"); int index = collection.IndexOf(layer);