ToRectF: IGxRectF;
The ToRectF method transforms the integer rectangle into the real rectangle.
Sub UserProc;
Var
Rect: IGxRect;
RectF: IGxRectF;
Begin
Rect := New GxRect.Create(0, 0, 10, 10);
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: