IGxPoint.OffsetP

Syntax

OffsetP(Point: IGxPoint);

Parameters

Point. The point used for offset.

Description

The OffsetP method shifts the current point coordinates by a value passed by the Point parameter.

Example

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

Var

Point: IGxPoint;

Link: IWxLink;

Begin

Point := New GxPoint.Create(23, 12);

Link := UiWorkspace1.WxWorkspace.CreateLink;

Link.BeginUpdate;

Link.FirstPoint := Point.ToPointF;

Point.OffsetP(Point);

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 value of its start point.

See also:

IGxPoint