IGxPointF.ToPoint

Syntax

ToPoint: IGxPoint;

Description

The ToPoint method transforms the real point into the integer point.

Comments

When the fractional part is transformed, it is rejected.

Example

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

Var

PointF: IGxPointF;

Point: IGxPoint;

Begin

PointF:=New GxPointF.Create(10.32,15.97);

Point:=PointF.ToPoint;

End Sub Button1OnClick;

After executing the example clicking the button transforms the real point into the integer point with the 10.15 coordinates.

See also:

IGxPointF