GxRectF.CreateFromRect

Syntax

CreateFromRect(Rect: IGxRectF);

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.

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.

See also:

GxRectF