AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

INT32 MgLayerGroupCollection::IndexOf ( CREFSTRING  name  ) 

Gets the index of the specified layer group in the collection.

.NET Syntax
int IndexOf(string name);
Java Syntax
int IndexOf(String name);
PHP Syntax
int IndexOf(string name);

Parameters:
name (String/string) Name of the layer group to search for.
Returns:
Returns the layer group's index if the collection contains the specified layer group, or false (-1) otherwise.