IGxSizeF.Reduce

Syntax

Reduce(DX: Double, DY: Double);

Parameters

DX. Offset by width.

DY. Offset by height.

Description

The Reduce method decreases the current 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.11,10.35);

Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;

Rect.BeginUpdate;

SizeF.Reduce(40.335,45.789);

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

Rect.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button creates a rectangle in the workspace, and its sizes are decreased by 40.335 on width and by 45.789 on height.

See also:

IGxSizeF