Skip to content

Titles Property

Description

Gets the collection of ChartTitle objects displayed in the chart.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Titles() As [ChartTitleCollection](XtremeChartControl~ChartTitleCollection.md)

Return Type

Reference to the chart's ChartTitleCollection.

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 to the same docking location. In addition to normal text, titles can contain XML markup snippets to format the title's text.

Markup Titles

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

ChartContent Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.