GetDefaultGanttChartView

ProjectView.GetDefaultGanttChartView method

Includes id, indicators, name, duration, start and finish task columns.

public static ProjectView GetDefaultGanttChartView()

Return Value

a view which contains a list of GanttChartColumn.

Examples

Shows how to save a project with Gantt chart view.

var project = new Project(DataDir + "Project2.mpp");
SaveOptions options = new PdfSaveOptions
{
    Timescale = Timescale.Months,
    View = ProjectView.GetDefaultGanttChartView()
};

project.Save(OutDir + "WorkWithProjectView_GanttChartView_out.pdf", options);

See Also