OffsetP(Point: IGxPoint);
Point. The point used for offset.
The OffsetP method shifts the current point coordinates by a value passed by the Point parameter.
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: