ChartDirector 5.1 (.NET Edition)

BaseChart.addTitle2


Usage

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

Description

Adds a title to the chart.

Arguments

ArgumentDefaultDescription
alignment(Mandatory)The position on the title on the chart. See Alignment Specification for supported alignment types.
text(Mandatory)The text for the title. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting.
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.