ITChart.OnLegendDrawSymbol
ITChart

property OnLegendDrawSymbol: TTChartOnLegendDrawSymbol;

Type Library
TeeChartx

Description

Triggered when plotting the Legend Symbol. You can use this event to plot an image atthe location at plot time.

Example

Private Sub TChart1_OnLegendDrawSymbol(ByVal Series As Long, ByVal ValueIndex As Long, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)

Dim Flag As Image

Dim r As TeeRect

If Check1.Value Then

With TChart1

If Series <> -1 Then

ImageList1.ListImages(ValueIndex + 1).Draw .Canvas.HandleDC, _

Screen.TwipsPerPixelX * Left, _

Screen.TwipsPerPixelY * (Top - 5)

End If

End With

End If

End Sub