GxPoint.CreateFromPoint

Fore Syntax

CreateFromPoint(Point: IGxPoint);

Fore.NET Syntax

CreateFromPoint(Point: Prognoz.Platform.Interop.Drawing.GxPoint);

Parameters

Point. The point that is used to create a new point.

Description

The CreateFromPoint constructor creates a new point that is the copy of the point passed by the Point parameter.

Fore Example

Function GetCopyPoint(SourcePoint: IGxPoint): IGxPoint;
Var
    DestinationPoint: IGxPoint;
Begin
    DestinationPoint := New GxPoint.CreateFromPoint(SourcePoint);
    Return DestinationPoint;
End Function GetCopyPoint;

The function returns the copy of the point passed as an input parameter.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetCopyPoint(SourcePoint: GxPoint): GxPoint;
Var
    DestinationPoint: GxPoint = New GxPointClass();
Begin
    DestinationPoint.CreateFromPoint(SourcePoint);
    Return DestinationPoint;
End Function;

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

See also:

GxPoint