Calculates the coordinates of the rectangle, corresponding to the area of intersection of the two specified rectangles. Returns a Boolean value: TRUE if the rectangles intersect, otherwise FALSE.
Applies to objects: DRect
object.IntersectRect (inRect1, inRect2) |
The IntersectRect method syntax has these parts:
Part | Description |
object | A reference to an instance of the object. |
inRect1, inRect2 |
References to DRect objects. |
res | A Boolean type variable. |
Note, that if the method returns FALSE, object properties are reset to zero.
Dim outRect as new DRect, inRect1 as new DRect, inRect2 as new DRect, res as Boolean |
See Also |
DRect Object |