ToSize: IGxSize;
The ToSize method transforms the point into the size.
Sub UserProc;
Var
Point: IGxPoint;
Size: IGxSize;
Begin
Point := New GxPoint.Create(10, 15);
Size := Point.ToSize;
Debug.WriteLine("Width: " + Size.Width.ToString + ". Height: " + Size.Height.ToString);
End Sub UserProc;
After executing the example an integer point is created. Then size is created based on the point. The obtained width and height of the size is displayed in the development environment console.
See also: