Contains

Determines whether the selected geometry completely contains another geometry. Within returns TRUE if the other geometry is completely within the selected one. The boundary of the selected geometry may not intersect the other one’s interior or boundary, and the two geometries may not be equal.

 

JavaScript

 

Contains(

       otherGeometry)

 

C#

 

bool Contains(

       IGeometry otherGeometry)

 

C++

 

HRESULT Contains(

       IGeometry* otherGeometry,

       VARIANT_BOOL* pVal)

Parameters

otherGeometry

An IGeometry representing the geometry which is being checked as to whether it is contained by the selected geometry.

Return Value

pVal

Returns TRUE if the geometry contains the other geometry.

Exceptions

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