AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

MgLayerBase* MgReadOnlyLayerCollection::GetItem ( INT32  index  ) 

Gets the layer at the specified index.

.NET Syntax
MgLayerBase GetItem(int index);
Java Syntax
MgLayerBase GetItem(int index);
PHP Syntax
MgLayerBase GetItem(int index);

Parameters:
index (int) Index of the layer to get.
Returns:
Returns the layer.
Exceptions:
MgOutOfRangeException if the index is invalid.