GxPoint.Create

Fore Syntax

Create(X: Integer; Y: Integer);

Fore.NET Syntax

Create(X: Integer; Y: Integer);

Parameters

X. The X coordinate of the point.

Y. The Y coordinate of the point.

Description

The Create constructor creates a new point with the specified coordinates.

Fore Example

Function GetPoint(X: Integer; Y: Integer): IGxPoint;
Var
    OutPoint: IGxPoint;
Begin
    OutPoint := New GxPoint.Create(X, Y);
    Return OutPoint;
End Function GetPoint;

The function returns a new point, which coordinates are passed as input parameters.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetPoint(X: Integer; Y: Integer): GxPoint;
Var
    OutPoint: GxPoint = New GxPointClass();
Begin
    OutPoint.Create(X, Y);
    Return OutPoint;
End Function;

This function returns a new point, which coordinates are passed as input parameters.

See also:

GxPoint