IGxRect.ToRectF

Syntax

ToRectF: IGxRectF;

Description

The ToRectF method transforms the integer rectangle into the real rectangle.

Example

Sub UserProc;
Var
    Rect: IGxRect;
    RectF: IGxRectF;
Begin
    Rect := New GxRect.Create(001010);
    RectF := Rect.ToRectF;
    Debug.WriteLine("Width: " + RectF.Width.ToString + ". Height: " + RectF.Height.ToString);
End Sub UserProc;

After executing the example an integer rectangle is created. Then is it transformed into a real rectangle. Width and height of the obtained rectangle are displayed in the development environment console.

See also:

IGxRect