IWxLink.InsertPoint

Syntax

InsertPoint(Number: Integer; Point: IGxPointF);

Parameters

Number - index of the line point, before which a new point will be inserted.

Point - point coordinate.

Description

The InsertPoint method inserts a new point.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Link : IWxLink;

Point : IGxPointF;

Begin

Link := ws.Shapes.Item(2) As IWxLink;

Point := New GxPointF.Create(Link.Points(1).X - 3, Link.Points(1).Y - 5);

Link.InsertPoint(1, Point);

End Sub UserProc;

After executing the example a new point is added to the line that is placed after the initial line point.

See also:

IWxLink