GxRect.Create

Fore Syntax

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

Fore.NET 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.

Fore 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.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

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

The function returns the rectangle with specified sizes.

See also:

GxRect