[VB] | Public Function addLegend(x As Integer, y As Integer [, vertical As Boolean [, font As String [, fontSize As Double ]]]) As LegendBox |
[C#] | public LegendBox addLegend(int x, int y [, bool vertical [, string font [, double fontSize ]]]); |
ChartDirector 5.1 (.NET Edition)
BaseChart.addLegend
Usage
[VB] | Public Function addLegend(x As Integer, y As Integer [, vertical As Boolean [, font As String [, fontSize As Double ]]]) As LegendBox |
[C#] | public LegendBox addLegend(int x, int y [, bool vertical [, string font [, double fontSize ]]]); |
Description
Arguments
Argument | Default | Description |
---|---|---|
x | (Mandatory) | The x coordinate of the reference point of the legend box. By default, the reference point is the top-left corner of the box, but can be configured by using TextBox.setAlignment. |
y | (Mandatory) | The y coordinate of the reference point of the legend box. By default, the reference point is the top-left corner of the box, but can be configured by using TextBox.setAlignment. |
vertical | true | A true value means the legend keys are laid out vertically (one line per entry). A false value means the legend keys are laid out horizontal and flow like text (from left to right, top to bottom). |
font | "" | The font name of the font for drawing the legend text. The default is "normal". See Font Specification for details on various font attributes. |
fontSize | 10 | The font size of the legend text. |
Return Value