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


IMap.SelectionCount Property (ArcObjects .NET 10.8 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
[C#]
public int SelectionCount {get;}
[C++]
HRESULT get_SelectionCount(
  System.Int32* Count
);
[C++]
Parameters
Count [out, retval]

Count is a parameter of type long*

Product Availability

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

Remarks

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