ArcObjects Library Reference (Carto)  

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