X: Double;
The X property determines the X coordinate of the real point.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Point, Point1: IGxPointF;
Link, Link1: IWxLink;
Begin
Point:=New GxPointF.Create(0,0);
Point1:=New GxPointF.Create(7.55,7.43);
Link:=UiWorkspace1.WxWorkspace.CreateLink;
Link1:=UiWorkspace1.WxWorkspace.CreateLink;
Link.BeginUpdate;
Link1.BeginUpdate;
Link.FirstPoint:=Point;
Link.LastPoint:=Point1;
Point.X:=23.46;
Point.Y:=78.34;
Link1.FirstPoint:=Point;
Link1.LastPoint:=Point1;
Link.EndUpdate;
Link1.EndUpdate;
End Sub Button1OnClick;
After executing the example clicking the button creates two connecting lines with different initial coordinates on the workspace.
See also: