GxPointF.CreateFromPoint

Fore Syntax

CreateFromPoint(Point: IGxPointF);

Fore.NET Syntax

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

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 GetCopyPointF(SourcePoint: IGxPointF): IGxPointF;
Var
    DestinationPoint: IGxPointF;
Begin
    DestinationPoint := New GxPointF.CreateFromPoint(SourcePoint);
    Return DestinationPoint;
End Function GetCopyPointF;

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

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetCopyPointF(SourcePoint: GxPointF): GxPointF;
Var
    DestinationPoint: GxPointF = New GxPointFClass();
Begin
    DestinationPoint.CreateFromPoint(SourcePoint);
    Return DestinationPoint;
End Function;

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

See also:

GxPointF