GxRect.CreateFromRect

Syntax

CreateFromRect(Rect: IGxRect);

Parameters

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

Description

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

Example

Function GetCopyRect(SourceRect: IGxRect): IGxRect;
Var
    DestinationRect: IGxRect;
Begin
    DestinationRect := New GxRect.CreateFromRect(SourceRect);
    Return DestinationRect;
End Function GetCopyRect;

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

See also:

GxRect