IMap.SelectionCount Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

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

Parameters 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

.NET Snippets

Create Graphic Buffers around Selected Features