IGxRect.ContainsR

Syntax

ContainsR(Rect: IGxRect): Boolean;

Parameters

Rect. The rectangle that is necessary to check.

Description

The ContainsR method checks if the current rectangle contains the rectangle.

Example

Sub UserProc;
Var
    Rect, Rect1: IGxRect;
Begin
    Rect := New GxRect.Create(005050);
    Rect1 := New GxRect.Create(Math.RandBetweenI(-5050), Math.RandBetweenI(-5050), Math.RandBetweenI(070), Math.RandBetweenI(070));
    Debug.WriteLine(Rect.ContainsR(Rect1))
End Sub UserProc;

After executing the example two rectangles are created. The development environment console displays whether the second rectangle is in the first one.

See also:

IGxRect