IGxSize.Expand

Syntax

Expand(DX: Integer; DY: Integer);

Parameters

DX. Change by width.

DY. Change by height.

Description

The Expand method increases size by the specified values of width and height.

Example

Sub UserProc;
Var
    Size: IGxSize;
Begin
    Size := New GxSize.Create(Math.RandBetweenI(060), Math.RandBetweenI(060));
    Size.Expand(1010);
    Debug.WriteLine("New width: " + Size.Width.ToString + ". New height: " + Size.Height.ToString);
End Sub UserProc;

After executing the example a size with random width and height is created. Then the size is increased. The obtained width and height of the size is displayed in the development environment console.

See also:

IGxSize