GxRectF.Create

Fore Syntax

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

Fore.NET Syntax

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

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 specified sizes.

Fore Example

Function GetRectF(Left: Double; Top: Double; Right: Double; Bottom: Double): IGxRectF;
Var
    OutRect: IGxRectF;
Begin
    OutRect := New GxRectF.Create(Left, Top, Right, Bottom);
    Return OutRect;
End Function GetRectF;

This function returns the rectangle with specified sizes.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetRectF(Left: Double; Top: Double; Right: Double; Bottom: Double): GxRectF;
Var
    OutRect: GxRectF = New GxRectFClass();
Begin
    OutRect.Create(Left, Top, Right, Bottom);
    Return OutRect;
End Function;

This function returns the rectangle with specified sizes.

See also:

GxRectF