GxPoint.CreateFromSize

Fore Syntax

CreateFromSize(Size: IGxSize);

Fore.NET Syntax

CreateFromSize(Size: Prognoz.Platform.Interop.Drawing.GxSize);

Parameters

Size. The size that is used to create a new point.

Description

The CreateFromSize constructor creates a new point based on the size passed by the Size parameter.

Comments

The width corresponds to the X coordinate, the height of the specified parameter corresponds to the Y coordinate.

Fore Example

Function GetPointFromSize(SourceSize: IGxSize): IGxPoint;
Var
    OutPoint: IGxPoint;
Begin
    OutPoint := New GxPoint.CreateFromSize(SourceSize);
    Return OutPoint;
End Function GetPointFromSize;

This function returns the point based on the size, which is passed as an input parameter.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetPointFromSize(SourceSize: GxSize): GxPoint;
Var
    OutPoint: GxPoint = New GxPoint();
Begin
    OutPoint.CreateFromSize(SourceSize);
    Return OutPoint;
End Function;

This function returns the point based on the size, which is passed as an input parameter.

See also:

GxPoint