com.esri.arcgis.carto
Interface IFeatureIdentifyObj

All Superinterfaces:
Serializable
All Known Implementing Classes:
FeatureIdentifyObject, SimpleIdentifyObject

public interface IFeatureIdentifyObj
extends Serializable

Provides access to a member that sets the feature used by the identify object.

Remarks

The IFeatureIdentifyObj interface sets the feature to be identified.

When used on a map layer, the IIdentify::Identify method returns an array of FeatureIdentifyObject objects. On a FeatureIdentifyObject, you can access the IIdentifyObj interface to get more information about the identified feature. The IIdentifyObj interface returns the window handle, layer, and name of the feature; it has methods to flash the feature in the display and to display a context menu at the Identify location.

Product Availability

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

See Also:
IIdentify, IIdentifyObj, FeatureIdentifyObject

Method Summary
 void setFeature(IFeature rhs1)
          The feature to be identified.
 

Method Detail

setFeature

void setFeature(IFeature rhs1)
                throws IOException,
                       AutomationException
The feature to be identified.

Remarks

The Feature property is write-only. However, you can get a reference to the identified feature by casting to IRowIdentifyObject and then using the Row property. This could be coded as follows.

Example:

 

IFeatureIdentifyObj pFeatIdObj = null;   
IRowIdentifyObject pRowObj = null;   
IFeature pFeature = null;   
// Do something that sets pFeatIdObj...   
// …   
// Get the feature that was identified by casting to IRowIdentifyObject   
pRowObj = new IRowIdentifyObjectProxy(pFeatIdObj);   
pFeature = new IFeatureProxy( pRowObj.getRow());

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.