ContainsP(Point: IGxPointF): Boolean;
Point. The point that is necessary to check.
The ContainsP method checks if the current real rectangle contains the point.
Sub UserProc;
Var
Rect: IGxRectF;
Point: IGxPointF;
Begin
Rect := New GxRectF.Create(0, 0, 10.5, 10.5);
Point := New GxPointF.Create(Math.RandBetween(0, 20), Math.RandBetween(0, 20));
Debug.WriteLine(Rect.ContainsP(Point))
End Sub UserProc;
After executing the example a new real rectangle and a real point are created. The development environment console displays whether the rectangle contains the point.
See also: