MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgFeatureReader* MgSelectionBase::GetSelectedFeatures ( MgLayerBase layer,
CREFSTRING  className,
bool  mappedOnly 
) [virtual]

Returns the selected feature data for the specified feature class.

.NET Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, string className, bool mappedOnly);
Java Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, String className, boolean mappedOnly);
PHP Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, string className, bool mappedOnly);
Parameters:
layer(MgLayerBase) Input layer.
className(String/string) Input feature class name.
mappedOnly(boolean/bool) Return mapped (true) or all (false) properties for selected features
Returns:
Returns a feature reader containing all the features for the given feature class in this selection.
Since:
2.0

Reimplemented in MgSelection.