This document is archived and information here might be outdated. Recommended version. |
Selects a feature.
[Visual Basic .NET] Public Sub SelectFeature ( _ ByVal Layer As ILayer, _ ByVal Feature As IFeature _ )
[C#] public void SelectFeature ( ILayer Layer, IFeature Feature );
[C++]
HRESULT SelectFeature(
ILayer* Layer,
IFeature* Feature
);
[C++] Parameters Layer [in]
Layer is a parameter of type ILayer* Feature [in]
Feature is a parameter of type IFeature*
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.