GxRectF.CreateFromRect

Fore Syntax

CreateFromRect(Rect: IGxRectF);

Fore.NET Syntax

CreateFromRect(Rect: Prognoz.Platform.Interop.Drawing.GxRectF);

Parameters

Rect. The rectangle that is used to create a new rectangle.

Description

TheCreateFromRect constructor creates a new rectangle that is a copy of the rectangle passed by the Rect parameter.

Fore Example

Function GetCopyRectF(SourceRect: IGxRectF): IGxRectF;
Var
    DestinationRect: IGxRectF;
Begin
    DestinationRect := New GxRectF.CreateFromRect(SourceRect);
    Return DestinationRect;
End Function GetCopyRectF;

This function returns the copy of the rectangle passed as an input parameter.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetCopyRectF(SourceRect: GxRectF): GxRectF;
Var
    DestinationRect: GxRectF = New GxRectFClass();
Begin
    DestinationRect.CreateFromRect(SourceRect);
    Return DestinationRect;
End Function;

This function returns the copy of the rectangle passed as an input parameter.

See also:

GxRectF