This document is archived and information here might be outdated.  Recommended version.

IMap.SelectionCount Property (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.SelectionCount Property
ArcGIS Developer Help

IMap.SelectionCount Property

Number of selected features.

[Visual Basic .NET]
Public ReadOnly Property SelectionCount As Integer
public int SelectionCount {get;}
HRESULT get_SelectionCount(
  System.Int32* Count
Count [out, retval]

Count is a parameter of type long*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Returns the total number of selected features in the Map.  The selection total is calculated from all layers that implement IFeatureLayer.

See Also

IMap Interface