ToSizeF: IGxSizeF;
The ToSizeF method transforms the integer size into the real size.
Sub UserProc;
Var
Size: IGxSize;
SizeF: IGxSizeF;
Begin
Size := New GxSize.Create(10, 15);
SizeF := Size.ToSizeF;
Debug.WriteLine("Width: " + SizeF.Width.ToString + ". Height: " + SizeF.Height.ToString);
End Sub UserProc;
After executing the example the integer size is created. Then the size is transformed into the real size. The obtained size width and height are displayed in the development environment console.
See also: