IGxSizeF.Expand

Syntax

Expand(DX: Double, DY: Double);

Parameters

DX. Offset by width.

DY. Offset by height.

Description

The Expand method expands the size.

Comments

The size is determined with real values.

Example

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

Var

SizeF: IGxSizeF;

Rect: IWxRectangle;

Begin

SizeF:=New GxSizeF.Create(10.5,11.32);

Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;

Rect.BeginUpdate;

SizeF.Expand(40.654, 45.123);

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

Rect.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button creates a rectangle, and its sizes are expanded by 40.654 on width and by 45.123 on height.

See also:

IGxSizeF