IGxRect.ContainsP

Syntax

ContainsP(Point: IGxPoint): Boolean;

Parameters

Point. The point that should be checked.

Description

The ContainsP method checks if the current rectangle contains the point.

Example

Sub UserProc;
Var
    Rect: IGxRect;
    Point: IGxPoint;
Begin
    Rect := New GxRect.Create(005045);
    Point := New GxPoint.Create(Math.RandBetweenI(070), Math.RandBetweenI(070));
    Debug.WriteLine(Rect.ContainsP(Point))
End Sub UserProc;

After executing the example a rectangle and a point are created. The development environment console displays whether the rectangle contains the point.

See also:

IGxRect