IGxSize.ToPoint

Syntax

ToPoint: IGxPoint;

Description

The ToPoint method transforms the size into the point.

Example

Sub UserProc;
Var
    Size: IGxSize;
    Point: IGxPoint;
Begin
    Size := New GxSize.Create(1015);
    Point := Size.ToPoint;
    Debug.WriteLine("X: " + Point.X.ToString + ". Y: " + Point.Y.ToString);
End Sub UserProc;

After executing the example the integer size is created. Then a point is created based on the size. Coordinates of the obtained point are displayed in the development environment console.

See also:

IGxSize