ChartDirector 7.1 (.NET Edition)

BaseChart.getLegend


Usage

[C#]public LegendBox getLegend();
[VB]Public Function getLegend() As LegendBox

Description

Gets the LegendBox object representing the legend box in the chart.

The LegendBox obtains using this method is not fixed. This allows you to add more keys to the legend box, and change the legend box fonts, etc. However, this also means that the legend box size (Box.getWidth and Box.getHeight) is undefined.

To obtain the width and height of the legend box, use BaseChart.layoutLegend.

Arguments

None

Return Value

The LegendBox object representing the legend box in the chart.