AGI STK Esri Display 11 Send comments on this topic.
SelectFeature Method (IAgEsri3dRenderer)
See Also  Example
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.





Description

Select the specified feature. Optionally refreshes the GIS information.

Syntax

[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(
ILayer Layer,
IFeature Feature,
ISelectionResult SelectionResult,
bool Refresh
);

[Managed C++]
public: void SelectFeature(
ILayer ^ Layer,
IFeature ^ Feature,
ISelectionResult ^ SelectionResult,
bool Refresh
);

[Java]
public  selectFeature(
ILayer Layer,
IFeature Feature,
ISelectionResult SelectionResult,
bool Refresh
);

[Unmanaged C++]
public: HRESULT SelectFeature(
ILayer * Layer,
IFeature * Feature,
ISelectionResult * SelectionResult,
VARIANT_BOOL Refresh
);

Parameters

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.

Remarks

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.

Example

[C#] Copy Code
renderer.SelectFeature(layer, oid, ESRI.ArcGIS.Carto.esriSelectionResultEnum.esriSelectionResultNew, true);

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1