MGMapLayerGroup.collapse   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

boolean collapse()

Description

Collapses the list of map layers under a group so that only the group name heading is visible in the legend.

Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" in the Autodesk MapGuide Developer's Guide.

Returns

boolean - Returns True if successful; otherwise, returns False.

Error Codes

-1 (busy)

See Also

expand, Collapsed