To retrieve bar style information, you will first need to retrieve a view. You can use the ProjectFile.getViews() method to retrieve a list of the available views. For Gantt chart views you will find entries in this list derived from the GanttChartView class. This class exposes a number of methods which control the appearance of the Gantt chart, including bar styles, which among other things includes the color of the bar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To retrieve bar style information, you will first need to retrieve a view. You can use the
ProjectFile.getViews()method to retrieve a list of the available views. For Gantt chart views you will find entries in this list derived from theGanttChartViewclass. This class exposes a number of methods which control the appearance of the Gantt chart, including bar styles, which among other things includes the color of the bar.