Posted 22 March 2021, 4:21 pm EST
Is there a way to set the font color, bold, italics, etc. on Gantt bars?
Forums Home / ComponentOne / WinForms Edition
Posted by: john.morrelles on 22 March 2021, 4:21 pm EST
Posted 22 March 2021, 4:21 pm EST
Is there a way to set the font color, bold, italics, etc. on Gantt bars?
Posted 23 March 2021, 12:57 am EST
Hi,
You can use the BarTextFont and BarTextForeColor property of the GanttView to customize the bar text shown in the chart view.
c1GanttView1.BarTextFont = new Font("Calibri", 10,FontStyle.Italic);
c1GanttView1.BarTextForeColor = Color.Red;
Please refer to the sample attached.
Regards
Avnish
GVBarText.zip