|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFeatureIdentifyObj
Provides access to a member that sets the feature used by the identify object.
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.
IIdentify
,
IIdentifyObj
,
FeatureIdentifyObject
Method Summary | |
---|---|
void |
setFeature(IFeature rhs1)
The feature to be identified. |
Method Detail |
---|
void setFeature(IFeature rhs1) throws IOException, AutomationException
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.
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());
rhs1
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |