ToSize: IGxSizeF;
The ToSize method transforms the real point into the real size.
Sub UserProc;
Var
Point: IGxPointF;
Size: IGxSizeF;
Begin
Point := New GxPointF.Create(10.5, 15.5);
Size := Point.ToSize;
Debug.WriteLine("Width: " + Size.Width.ToString + ". Height: " + Size.Height.ToString);
End Sub UserProc;
After executing the example a real point is created. Then a real size is created based on the point. The obtained width and height of the size is displayed in the development environment console.
See also: