IGxPointF.Offset

Syntax

Offset(DX: Double, DY: Double);

Parameters

DX. Offset by X.

DY. Offset by Y.

Description

The Offset method shifts the point by DX along the X axis and by DY along the Y axis.

Example

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

Var

PointF: IGxPointF;

Link: IWxLink;

Begin

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

Link:=UiWorkspace1.WxWorkspace.CreateLink;

Link.BeginUpdate;

PointF.Offset(40.33,23.478);

Link.LastPoint:=PointF;

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 40.33 along the X axis and 23.478 along the Y axis.

See also:

IGxPointF