Select the specified feature. Optionally
refreshes the GIS information.
[Visual Basic .NET] |
---|
Public Sub SelectFeature( _
ByVal Layer As ILayer, _
ByVal Feature As IFeature, _
ByVal SelectionResult As ISelectionResult, _
ByVal Refresh As Boolean _
)
|
[C#] |
---|
public void SelectFeature(
|
[Managed C++] |
---|
public: void SelectFeature(
|
[Java] |
---|
public selectFeature(
|
[Unmanaged C++] |
---|
public: HRESULT SelectFeature(
|
- Layer
- Specifies an ILayer object containing the feature to flash.
- Feature
- Feature to select.
- SelectionResult
- Define combination methods for selection operations i.e. how the selection performed will combine with an existing selection.
- Refresh
- If True, calls automatically Refresh(True) after updating the selection.
Internally:
- Retrieves the feature class for the specified layer.
- Builds a query filter (esriGeoDatabase.QueryFilter) to retrieve the feature with the specified OID.
- Use the SelectFeatures method of the IFeatureSelection interface on the layer to manipulate the selection.
[C#] | Copy Code | |
---|---|---|
|