Skip to content

Docking Property

Description

Gets/sets the docking location of the title.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Docking() As [ChartDocking](XtremeChartControl~Enumerations~ChartDocking_EN.md)

Return Type

Returns a value from ChartDocking representing the docking location of the title.

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.

The diagram below shows titles docked to all four sides of the chart.

Docked Titles Diagram

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.