SaveOptionsDrawNonWorkingTime Property

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

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.5
public bool DrawNonWorkingTime { get; set; }

Property Value

Type: Boolean
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