ToPointF: IGxPointF;
The ToPointF method transforms the point into the real point.
Sub UserProc;
Var
Point: IGxPoint;
PointF: IGxPointF;
Begin
Point := New GxPoint.Create(10, 15);
PointF := Point.ToPointF;
Debug.WriteLine("X: " + PointF.X.ToString + ". Y: " + PointF.Y.ToString);
End Sub UserProc;
After executing the example an integer point is created. Then the point is converted to a real point. The obtained real point coordinates are displayed in the development environment console.
See also: