Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgSelection Class Reference
[MgSelection]

Inherits MgSelectionBase.

List of all members.

## Public Member Functions
MgFeatureReader * | GetSelectedFeatures (MgLayerBase *layer, CREFSTRING className, MgStringCollection *propertyNames)
MgFeatureReader * | GetSelectedFeatures (MgLayerBase *layer, CREFSTRING className, bool mappedOnly)
| Returns the selected feature data for the specified feature class.
| MgSelection ()
| MgSelection (MgMap *map, CREFSTRING xmlSelectionString)
| Initialize selection from a map and xml selection.
| MgSelection (MgMap *map)
| Initialize selection generation from a map.
virtual void | Open (MgResourceService *resourceService, CREFSTRING mapName)
| Loads the selection object from a session repository.
void | Save (MgResourceService *resourceService, CREFSTRING mapName)
| Save the selection object to a session repository.
virtual | ~MgSelection ()

## Detailed Description

Exposed API class for handling selection Represents a set of selections for multiple layers and classes

Comments or suggestions? Send us feedback.