InflateS(Size: IGxSizeF);
Size. The size, by which it is necessary to increase.
The InflateS method increases the integer rectangle by the specified size.
Sub UserProc;
Var
Rect: IGxRectF;
Size: IGxSizeF;
Begin
Rect := New GxRectF.Create(0, 0, Math.RandBetween(0, 60), Math.RandBetween(0, 60));
Size := New GxSizeF.Create(10, 10);
Rect.InflateS(Size);
Debug.WriteLine("New width: " + Rect.Width.ToString + ". New height: " + Rect.Height.ToString);
End Sub UserProc;
After executing the example the real rectangle with random size and a real size are created. Then the rectangle is increased by the created size. The obtained rectangle width and height are displayed in the development environment console.
See also: