MGSelection.removeObjectsEx   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

void removeObjectsEx(MGCollection objects, boolean notify)

Description

Removes multiple map features from the selection and updates the display.

This method replaces the removeObjects method in earlier versions of the Autodesk MapGuide Viewer API and supports the Autodesk MapGuide Viewer Plug-In, Java Edition, and ActiveX Control with the same syntax. The older method will still work in Release 6, but you should use removeObjectsEx for all future development.

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.

Parameters

objects - A collection of the map features to remove from the selection.

notify - If true, fires the onSelectionChanged event after the removal.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

removeObject