ChartDirector 7.1 (.NET Edition)

BaseChart.addTitle


Usage

[C#]public ChartDirector.TextBox addTitle(string text [, string font [, double fontSize [, int fontColor [, int bgColor [, int edgeColor ]]]]]);
[VB]Public Function addTitle(text As String [, font As String [, fontSize As Double [, fontColor As Integer [, bgColor As Integer [, edgeColor As Integer ]]]]]) As ChartDirector.TextBox

Description

Adds a title at the top center of the chart.

The title is contained within a box, of which the width is the same as the width of the chart, and the height is automatically adjusted to fit the text. The box is initially invisible, but can be made visible by setting the bgColor and edgeColor.

Arguments

ArgumentDefaultDescription
text(Mandatory)The text for the title. CDML
font""The font used to draw the title text. The default is "bold". See Font Specification for details on various font attributes.
fontSize12The font size in points for the title text.
fontColorTextColorThe color of the title text.
bgColorTransparentThe background color of the title box.
edgeColorTransparentThe border color of the title box.

Return Value

A TextBox object representing the title box. This may be used to fine-tune the appearance of the title box.