IGxPointF.OffsetS

Syntax

OffsetS(Size: IGxSizeF);

Parameters

Size. The size used for offset.

Description

The OffsetS method shifts the current point by the real size passed by the Size parameter.

Example

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

Var

PointF: IGxPointF;

SizeF: IGxSizeF;

Link: IWxLink;

Begin

PointF:=New GxPointF.Create(0,0);

SizeF:=New GxSizeF.Create(42.443,37.433);

Link:=UiWorkspace1.WxWorkspace.CreateLink;

Link.BeginUpdate;

PointF.OffsetS(SizeF);

Link.LastPoint:=PointF;

Link.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button shifts the connecting line and its end point by the SizeF size.

See also:

IGxPointF