ArcObjects Library Reference  (Carto)    

IMap.ClearSelection Method

Clears the map selection.

[Visual Basic 6.0]
Sub ClearSelection
[Visual Basic .NET]
Public Sub ClearSelection ( _
)
[C#]
public void ClearSelection (
);
[Java]
public void clearSelection (
)
throws
    IOException,
    AutomationException
[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

 


Feedback Send feedback on this page