IGxPointF.OffsetP

Syntax

OffsetP(Point: IGxPointF);

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: IGxPointF;

Link: IWxLink;

Begin

Point := New GxPointF.Create(23.5, 12.3);

Link := UiWorkspace1.WxWorkspace.CreateLink;

Link.BeginUpdate;

Link.FirstPoint := Point;

Point.OffsetP(Point);

Link.LastPoint := Point;

Link.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button creates a connecting line on the workspace, and its end point is shifted by the value of its start point.

See also:

IGxPointF