IGxSizeF.ToSize

Syntax

ToSize: IGxSize;

Description

The ToSizeF method transforms the size into the size determined by the integer value.

Comments

The size is determined with real values.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

SizeF: IGxSizeF;

Size: IGxSize;

Begin

SizeF:=New GxSizeF.Create(16.99,15.788);

Size:=SizeF.ToSize;

End Sub Button1OnClick;

After executing the example clicking the button transforms the real size into the integer size with the width of 16 and the height of 15.

See also:

IGxSizeF