IDrawLineTool.AddLine
IDrawLineTool

function AddLine(FromX, FromY, ToX, ToY: Double): Integer;

Type Library
TeeChartx

Description

Method Adds line by code to DrawLineTool's Line collection.

Values FromX,FromY,ToX,ToY as Axis values.

Example [Visual Basic]

Dim ToolIndex, LineIndex As Integer

With TChart1

ToolIndex = .Tools.Add(tcDrawLine)

With .Tools.Items(ToolIndex).asDrawLine

LineIndex = .AddLine(100, 100, 300, 300)

End With

End With