GxRect.Create

Syntax

Create(Left: Integer; Top: Integer; Right: Integer; Bottom: Integer);

Parameters

Left. Distance from the coordinates system center to the left border of rectangle.

Top. Distance from the coordinates system center to the upper border of rectangle.

Right. Distance from the coordinates system center to the right border of rectangle.

Bottom. Distance from the coordinates system center to the bottom border of rectangle.

Description

The Create constructor creates a new rectangle with the specified sizes.

Example

Function GetRect(Left: Integer; Top: Integer; Right: Integer; Bottom: Integer): GxRect;
Var
    OutRect: IGxRect;
Begin
    OutRect := New GxRect.Create(Left, Top, Right, Bottom);
    Return OutRect;
End Function GetRect;

The function returns the rectangle with specified sizes.

See also:

GxRect