AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

bool MgLayerCollection::Contains ( CREFSTRING  name  ) 

Determines if the collection contains the specified layer.

.NET Syntax
bool Contains(string name);
Java Syntax
boolean Contains(String name);
PHP Syntax
bool Contains(string name);

Parameters:
name (String/string) Name of the layer to search for.
Returns:
Returns true if the collection contains the specified item, or false otherwise.