ToPoint: IGxPoint;
The ToPoint method transforms the size into the point.
Sub UserProc;
Var
Size: IGxSize;
Point: IGxPoint;
Begin
Size := New GxSize.Create(10, 15);
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: