Add Method
Description
Adds a new ChartTitle to the chart's collection of titles.
Syntax
Public Function Add( _
ByVal Text As String _
) As [ChartTitle](XtremeChartControl~ChartTitle.md)
Parameters
- Text: Text string to display in the title.
Return Type
Reference to the ChartTitle to be added.
Remarks
The chart can contain multiple sets of titles that can be docked to the top, bottom, left, or right of the chart. You can also stack multiple titles in the same docking location. In addition to normal text, titles can contain XML markup snippets to format the title's text.

Example
Dim pContent As ChartContent
Set pContent = ChartControl.Content
pContent.EnableMarkup = True
pContent.Legend.Visible = False
Dim pTitle As ChartTitle
Set pTitle = pContent.Titles.Add("Chart Control supports Titles")
Set pTitle = pContent.Titles.Add("Left Title")
pTitle.Docking = xtpChartDockLeft
Set pTitle = pContent.Titles.Add("Right Title")
pTitle.Docking = xtpChartDockRight
Set pTitle = pContent.Titles.Add("Click Title to set its properties")
pTitle.Docking = xtpChartDockBottom
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.