IGxPoint.OffsetS

Syntax

OffsetS(Size: IGxSize);

Parameters

Size. The size used for offset.

Description

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

Example

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

Var

Point: IGxPoint;

Size: IGxSize;

Link: IWxLink;

Begin

Point:=New GxPoint.Create(0,0);

Size:=New GxSize.Create(45,36);

Link:=UiWorkspace1.WxWorkspace.CreateLink;

Link.BeginUpdate;

Point.OffsetS(Size);

Link.LastPoint:=Point.ToPointF;

Link.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button creates a connecting line in the workspace, and its end point is shifted by the Size size.

See also:

IGxPoint