SaveOptions.DrawNonWorkingTime

SaveOptions.DrawNonWorkingTime property

Gets or sets a value indicating whether non-working time should be drawn (Default value is TRUE).

public bool DrawNonWorkingTime { get; set; }

Examples

Shows how to set a value indicating that subtasks on the summary task bar must be rolled up.

var project = new Project(DataDir + "Project2.mpp");

project.DisplayOptions.ShowProjectSummaryTask = true;
project.Set(Prj.ShowProjectSummaryTask, true);

var options = new PdfSaveOptions
{
    PresentationFormat = PresentationFormat.GanttChart,
    FitContent = true,
    RollUpGanttBars = true,

    // OR
    // options.RollUpGanttBars = false;
    // DrawNonWorkingTime = true,
    PageSize = PageSize.A3
};

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

See Also