ESRI.ArcGIS.Mobile
Relate Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace > Envelope Class : Relate Method

geometry
The Geometry with which to compare this Geometry.
relationship
a specified spatial relationship.
Checks if the specified spatial relationship exists the envelope and another geometry.

Syntax

Visual Basic (Declaration) 
Public Function Relate( _
   ByVal geometry As IGeometry, _
   ByVal relationship As GeometricRelationshipType _
) As Boolean
C# 
public bool Relate( 
   IGeometry geometry,
   GeometricRelationshipType relationship
)

Parameters

geometry
The Geometry with which to compare this Geometry.
relationship
a specified spatial relationship.

Return Value

Returns true if there exists the specified spatial relationship between the envelop and the input geometry, otherwise it returns false.

Remarks

Checks if the envelop has a specified spatial relationships with another geometry. the relationship could be any of the following.

GeometricRelationship.Any = 0,
GeometricRelationship.Intersect = 1,
GeometricRelationship.Touch = 4,
GeometricRelationship.Overlap = 5,
GeometricRelationship.Cross = 6,
GeometricRelationship.Within = 7,
GeometricRelationship.Contain = 8,
GeometricRelationship.Disjoint = 10

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.