This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IR > IRelationalOperator2 Interface > IRelationalOperator2.IsNear Method (ArcObjects .NET 10.5 SDK) |
Indicates if this geometry is within distance from the other geometry.
[Visual Basic .NET] Public Function IsNear ( _ ByVal pOther As IGeometry, _ ByVal distance As Double _ ) As Boolean
[C#] public bool IsNear ( IGeometry pOther, double distance );
[C++]
HRESULT IsNear(
IGeometry* pOther,
double distance,
VARIANT_BOOL* pbNear
);
[C++]
Parameters pOther
pOther is a parameter of type IGeometry distance distance is a parameter of type double pbNear [out, retval] pbNear is a parameter of type VARIANT_BOOL