TableTextStyles

GanttChartView.TableTextStyles property

Gets a list of table text styles of the Gantt Chart view. TableTextStyle.

public List<TableTextStyle> TableTextStyles { get; }

Examples

Shows how to add custom table text styles.

var project = new Project(DataDir + "Project5.mpp");
var view = (GanttChartView)project.Views.ToList()[0];

view.TableTextStyles.Clear();
view.TableTextStyles.Add(new TableTextStyle(1) { Color = Color.Red, Field = Field.TaskName });
view.TableTextStyles.Add(new TableTextStyle(1) { Color = Color.Gray, Field = Field.TaskDurationText });
view.TableTextStyles.Add(new TableTextStyle(2, FontStyles.Bold | FontStyles.Italic | FontStyles.Underline)
{
    Color = Color.Blue
});

See Also