[]
Determines the index of a specific Layer object in the LayerCollection.
public int IndexOf(Layer item)
Type | Name | Description |
---|---|---|
Layer | item | A Layer object to locate in the LayerCollection. |
Type | Description |
---|---|
int | An int value indicating the index of the entry if it was found in the collection;
otherwise, |
LayerCollection collection = new LayerCollection(_report);
Layer layer = new Layer("Layer1");
int index = collection.IndexOf(layer);