ToSize: IGxSize;
The ToSize method transforms the real size into the integer size.
The fractional part of size width and height is removed during transformation.
Sub UserProc;
Var
SizeF: IGxSizeF;
Size: IGxSize;
Begin
SizeF := New GxSizeF.Create(10.5, 15.5);
Size := SizeF.ToSize;
Debug.WriteLine("Width: " + Size.Width.ToString + ". Height: " + Size.Height.ToString);
End Sub UserProc;
After executing the example a real size is created. Then the size is transformed into the integer size. The obtained size width and height are displayed in the development environment console.
See also: