RectShape.Contains
From Real Software Documentation
Method
Tests whether the object contains the point X, Y. Returns True if the rectangle contains the point specified by X, Y.
Example
This example tests whether the RectShape contains the passed point.
