IGxSize.ExpandS

Syntax

ExpandS(Size: IGxSize);

Parameters

Size. The size used for expanding.

Description

The ExpandS method expands the current size to the size sent in the Size parameter.

Comments

The size is determined with integer values.

Example

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

Var

Size, Size1: IGxSize;

Rect: IWxRectangle;

Begin

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

Size1:=New GxSize.Create(35,27);

Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;

Rect.BeginUpdate;

Size.ExpandS(Size1);

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 the Size1 value.

See also:

IGxSize