IIndexQuery2.Within Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IIndexQuery2.Within Property

Finds all features that the input shape lies within.

[Visual Basic .NET]
Public Function get_Within ( _
    ByVal pShape As IGeometry _
) As IFeatureCursor
public IFeatureCursor get_Within (
    IGeometry pShape
HRESULT get_Within(
  IGeometry* pShape,
  IFeatureCursor** ppFeatureCursor

Parameters pShape [in]
pShape is a parameter of type IGeometry* ppFeatureCursor [out, retval]
ppFeatureCursor is a parameter of type IFeatureCursor**

Product Availability

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


Returns a FeatureCursor containing all the features in the spatial index for which the input shape is within.

See Also

IIndexQuery2 Interface