[C#] | public LegendBox addLegend2(int x, int y, int noOfCols [, string font [, double fontSize ]]); |
[VB] | Public Function addLegend2(x As Integer, y As Integer, noOfCols As Integer [, font As String [, fontSize As Double ]]) As LegendBox |
ChartDirector 7.1 (.NET Edition)
BaseChart.
Usage
[C#] | public LegendBox addLegend2(int x, int y, int noOfCols [, string font [, double fontSize ]]); |
[VB] | Public Function addLegend2(x As Integer, y As Integer, noOfCols As Integer [, font As String [, fontSize As Double ]]) As LegendBox |
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. |
noOfCols | (Mandatory) | The number of columns in the legend box. The special value AutoGrid (= -2) means the number of columns is automatically determined. If this argument is 0, the legend box will use a flow layout (from left to right and then top to bottom, in which the entries may not be vertically aligned). |
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