Articles in this section
Category / Section

How can I change the font color of the title in Chart?

1 min read

To change the font color of title for charts use the following code snippets.

C#

IChartShape shape = sheet.Charts.Add();
//Set title for charts.
shape.ChartTitle = "Texas Books Unit Sales";
//Change the font color of the title area.
shape.ChartTitleArea.Color = ExcelKnownColors.Custom21;

 

VB

Dim shape As IChartShape = sheet.Charts.Add()
'Set title for charts.
shape.ChartTitle = "Texas Books Unit Sales"
'Change the font color of the title area
shape.ChartTitleArea.Color = ExcelKnownColors.Custom21;

 

Here is the sample for your reference:

Chart_Title.zip

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied