IGxRectF.ContainsP

Syntax

ContainsP(Point: IGxPointF): Boolean;

Parameters

Point. The point that is necessary to check.

Description

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

Example

Sub UserProc;
Var
    Rect: IGxRectF;
    Point: IGxPointF;
Begin
    Rect := New GxRectF.Create(0010.510.5);
    Point := New GxPointF.Create(Math.RandBetween(020), Math.RandBetween(020));
    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:

IGxRectF