Within

Returns TRUE if the selected geometry is completely within another geometry. The boundary of and interior of the selected geometry may not intersect the boundary of the selected other one, and the two geometries may not be equal.

 

JavaScript

 

 

 

Within(

       otherGeometry)

 

C#

 

 

 

bool Within(

       IGeometry otherGeometry)

 

C++

 

 

 

HRESULT Within(

       IGeometry* otherGeometry,

       VARIANT_BOOL* pVal)

Parameters

otherGeometry

An IGeometry representing the geometry being checked if the selected geometry is within it.

Return Value

pVal

Returns TRUE if the selected geometry is within the other one.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.