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


IMap.ClearSelection Method (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.ClearSelection Method
ArcGIS Developer Help

IMap.ClearSelection Method

Clears the map selection.

[Visual Basic .NET]
Public Sub ClearSelection ( _
)
[C#]
public void ClearSelection (
);
[C++]
HRESULT ClearSelection(
void
);

Product Availability

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

Remarks

Unselects all features in all layers that implement IFeatureLayer and calls IActiveViewEvents::SelectionChanged to notify listeners the selection has changed.  If no features are selected initially, the event is not fired.
This method does not unselect graphic elements.

See Also

IMap Interface