IGxSizeF.ReduceS

Syntax

ReduceS(Size: IGxSizeF);

Parameters

Size. The size used for decreasing.

Description

The ReduceS method decreases the current size to the size passed in the Size parameter.

Comments

The size is determined with real values.

Example

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

Var

SizeF, Size1F: IGxSizeF;

Rect: IWxRectangle;

Begin

SizeF:=New GxSizeF.Create(10.31,10.78);

Size1F:=New GxSizeF.Create(35.65,27.76);

Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;

Rect.BeginUpdate;

SizeF.ReduceS(Size1F);

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 decreased by the value of the Size size.

See also:

IGxSizeF