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:
Did not find the solution
Contact Support