IGxSizeF.ToSize

Syntax

ToSize: IGxSize;

Description

The ToSize method transforms the real size into the integer size.

Comments

The fractional part of size width and height is removed during transformation.

Example

Sub UserProc;
Var
    SizeF: IGxSizeF;
    Size: IGxSize;
Begin
    SizeF := New GxSizeF.Create(10.515.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:

IGxSizeF