All Controls


Edit Caption

This page describes how to edit the caption of the charts. The caption of the charts is of the following type:

The first step is to include the necessary namespaces for the controls and add a new chart.

Edit the Caption

Below, we will edit the caption of an Individuals chart (named indChart in the examples below). The process is similar for the other charts:

[Visual Basic]
' Edit the caption
indChart.Caption.Caption = "New Caption"
indChart.Caption.CaptionColor = Color.Red
indChart.CaptionFont = New Font("Arial", 14)

[Visual C#]
// Edit the caption
indChart.Caption.Caption = "New Caption";
indChart.Caption.CaptionColor = Color.Red;
indChart.CaptionFont = new Font("Arial", 14);

The resulting chart should look similar to the following:

Individuals chart with edited caption