All Controls
Show/Hide Caption
This page describes how to show or hide the caption of the charts. The caption of the charts is of the following type:
The caption of the chart is the first caption in the Captions collection of a chart. You can also add other subcaptions to the collection.
The first step is to include the necessary namespaces
for the controls and add a new chart.
Hide the Caption
Below, we will hide the caption of an Individuals chart (named indChart in the examples below). The process is similar for the other charts:
[Visual Basic]
' Hide the caption
indChart.Caption.Show = False
[Visual C#]
// Hide the caption
indChart.Caption.Show = false;
The resulting
chart should look similar to the following:
Show the Caption
Below, we will show the caption of an Individuals chart (named indChart in the examples below). The process is similar for the other charts:
[Visual Basic]
' Show the caption
indChart.Caption.Show = True
[Visual C#]
// Show the caption
indChart.Caption.Show = true;
The resulting
chart should look similar to the following: