IGxSize.Expand

Syntax

Expand(DX: Integer, DY: Integer);

Parameters

DX. Offset by width.

DY. Offset by height.

Description

The Expand method expands the size.

Comments

The size is determined with integer values.

Example

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

Var

Size: IGxSize;

Rect: IWxRectangle;

Begin

Size:=New GxSize.Create(10,10);

Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;

Rect.BeginUpdate;

Size.Expand(40,45);

Rect.Size:=New GxSizeF.CreateFromSize(Size.ToSizeF);

Rect.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button creates a rectangle in the workspace, and its size is increased by 40 on width and by 45 on height.

See also:

IGxSize