AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual void MgLayerBase::SetVisible ( bool  visible  )  [virtual]

Sets the layer's potential visibility.

Remarks:
Note that setting this property to true will not necessarily guarantee the layer will be visible. The layer will be visible only when this property is true, all groups this layer is organized within are visible, and the current viewScale property of the map is within the scale ranges defined for this layer. Note also that the visibility of base map layers (those of type MgLayerType::BaseMap) cannot be changed. Attempting to do so will throw an MgInvalidOperationException.
.NET Syntax
void SetVisible(bool visible);
Java Syntax
void SetVisible(boolean visible);
PHP Syntax
void SetVisible(bool visible);

Parameters:
visible (boolean/bool) True if the layer should be visible, false otherwise.
Returns:
Returns nothing.