IGxRectF.ContainsR

Syntax

ContainsR(Rect: IGxRectF): Boolean;

Parameters

Rect. The rectangle that is necessary to check.

Description

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

Example

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

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

See also:

IGxRectF