IMap.SelectFeature Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMap.SelectFeature Method

Selects a feature.

[Visual Basic .NET]
Public Sub SelectFeature ( _
    ByVal Layer As ILayer, _
    ByVal Feature As IFeature _
public void SelectFeature (
    ILayer Layer,
    IFeature Feature
HRESULT SelectFeature(
  ILayer* Layer,
  IFeature* Feature

Parameters Layer [in]
Layer is a parameter of type ILayer* Feature [in]
Feature is a parameter of type IFeature*

Product Availability

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


Adds the feature to the feature layer's selection set. For example, the Editor's 'Create New Feature' task uses this method to select the new feature it has just created. This method also calls IActiveViewEvents::SelectionChanged to notify all listeners of the event.

See Also

IMap Interface