BaseChart.addText
ChartDirector Ver 4.1 (C++ Edition)
BaseChart.addText
Usage
TextBox *addText(int x, int y, const char *text, const char *font = 0, double fontSize = 8, int fontColor = TextColor, int alignment = TopLeft, double angle = 0, bool vertical = false);
Description
Adds a text box to the chart. By default, only the text is visible, the box is transparent. This method returns a TextBox object that can be used to change the appearance of the text box.
SEO India | Search Engine Optimization Company India
Arguments
| Argument |
Default |
Description |
| x |
(Mandatory) |
The x coordinate of the left of the text box. |
| y |
(Mandatory) |
The y coordinate of the top of the text box. |
| text |
(Mandatory) |
The text to shown in the text box. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting. |
| font |
"" |
The font used to draw the text. See Font Specification for details on various font attributes. |
| fontSize |
8 |
The font size used to draw the text. |
| fontColor |
TextColor |
The color used to draw the text. |
| alignment |
TopLeft |
The alignment of the text within the text box. See Alignment Specification for supported alignment types. |
| angle |
0 |
The rotation angle of the text within the text box. |
| vertical |
false |
Indicate whether the text should be laid out vertically (from top to bottom) or horizontally (from left to right). |
Return Value
A TextBox object representing the text box. This may be used to fine-tune the appearance of the text box.
© 2006 Advanced Software Engineering Limited. All rights reserved.
|