ITChart.OnDrawLineToolNewLine
ITChart
property OnDrawLineToolNewLine: TNotifyEvent;
Type Library
TeeChartx
Description
The DrawLineToolNewLine event is fired when a DrawLine Tool line has been created.
Example [Visual Basic]:
Private Sub Form_Load()
With TChart1
.AddSeries scLine
.Series(0).FillSampleValues 10
.Tools.Add tcDrawLine
With .Tools.Items(0).asDrawLine
.Series = 0
End With
End With
End Sub
Private Sub TChart1_OnDrawLineToolDraggedLine()
Label1.Caption = "Line Dragged"
End Sub
Private Sub TChart1_OnDrawLineToolLineDrag()
Label1.Caption = "Line Drag"
End Sub
Private Sub TChart1_OnDrawLineToolNewLine()
Label1.Caption = "NewLine"
End Sub
Private Sub TChart1_OnDrawLineToolSelectLine()
Label1.Caption = "Line selected"
End Sub