RectShape.Contains
From Xojo Documentation
Method
Tests whether the object contains the point X, Y. Returns True if the rectangle contains the point specified by X, Y.
Sample Code
This code tests whether the RectShape contains the passed point: