ITChart.OnMarkTipToolGetText
ITChart
property OnMarkTipToolGetText: TTChartOnMarkTipToolGetText;
Type Library
TeeChartx
Description
The OnMarkTipToolGetText event is fired just before the drawing of the MarkTip Tool text, enabling its modification.
Example [Visual Basic]:
Private Sub Form_Load()
With TChart1
.AddSeries scBar
.Series(0).FillSampleValues 10
.Tools.Add tcMarksTip
With .Tools.Items(0).asMarksTip
.Series = 0
End With
End With
End Sub
Private Sub TChart1_OnMarkTipToolGetText(ByVal Tool As Long, Text As String)
If Tool = 0 Then
Text = "YValue " & Text
End If
End Sub