Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

Add
AddFeatureIdDouble
AddFeatureIdInt16
AddFeatureIdInt32
AddFeatureIdInt64
AddFeatureIds
AddFeatureIdString
AddFeatures
Contains
FromXml
GenerateFilter
GetClass
GetClasses
GetExtents
GetLayers
GetResourceName
GetSelectedFeatures
GetSelectedFeatures
GetSelectedFeaturesCount
MgSelectionBase
MgSelectionBase
Open
Save
ToXml
INT32 MgSelectionBase::GetSelectedFeaturesCount | ( | MgLayerBase * | layer,
|  | CREFSTRING | className |
| ) |  |  |
Returns the number of selected features. .NET Syntax
`int GetSelectedFeaturesCount(MgLayerBase layer, string className);`
Java Syntax
`int GetSelectedFeaturesCount(MgLayerBase layer, String className);`
PHP Syntax
`int GetSelectedFeaturesCount(MgLayerBase layer, string className);`
  Parameters:
  | layer | (MgLayerBase) Input layer.
  | className | (String/string) Input feature class name.
Returns: Returns Count of all selected features.

Comments or suggestions? Send us feedback.