AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

INT32 MgLayerCollection::IndexOf ( MgLayerBase value  ) 

Gets the index of the specified layer in the collection.

.NET Syntax
int IndexOf(MgLayerBase value);
Java Syntax
int IndexOf(MgLayerBase value);
PHP Syntax
int IndexOf(MgLayerBase value);

Parameters:
value (MgLayerBase) MgLayerBase to search for.
Returns:
Returns the layer's index if the collection contains the specified layer, or false (-1) otherwise.