SaveOptions Class

This is an abstract base class for classes that allow the user to specify additional options when saving a project into a particular format.
Inheritance Hierarchy
SystemObject
  Aspose.Tasks.SavingSaveOptions
    More...

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.10
Syntax
public abstract class SaveOptions

The SaveOptions type exposes the following members.

Constructors
  NameDescription
Protected methodCode exampleSaveOptions
Initializes a new instance of the SaveOptions class.
Protected methodCode exampleSaveOptions(SaveOptions)
Initializes a new instance of the SaveOptions class.
Properties
  NameDescription
Public propertyCode exampleBarStyles
Gets or sets the list of the instances of the BarStyle class that appear in project view.
Public propertyCode exampleDrawNonWorkingTime
Gets or sets a value indicating whether non-working time should be drawn (Default value is TRUE).
Public propertyCode exampleEndDate
Gets or sets a date to finish rendering to.
Public propertyCode exampleFitContent
Gets or sets a value indicating whether row height should be increased to fit its content.
Public propertyCode exampleGridlines
Gets or sets a list of Gridline that appear in project view.
Public propertyCode exampleLegendOnEachPage
Gets or sets a value indicating whether legend should be shown on each page (Default value is TRUE).
Public propertyCode exampleMarkCriticalTasks
Gets or sets a value indicating whether critical tasks should be displayed in red color (Default value is FALSE).
Public propertyCode exampleNonWorkingTimeColor
Gets or sets the non-working time color.
Public propertyCode examplePageCount
Gets or sets the number of pages of project.
Public propertyCode examplePageSize
Gets or sets the size of page to be rendered (Default value is PageSize.A4).
Public propertyCode examplePresentationFormat
Gets or sets the PresentationFormat in which the document will be saved.
Public propertyCode exampleRollUpGanttBars
Gets or sets a value indicating whether subtasks on the summary task bar should be marked. For subtasks, the Rollup field indicates whether information on the subtask Gantt bars will be rolled up to the summary task bar. For summary tasks, the Rollup field indicates whether the summary task bar displays rolled up bars. You must have the Rollup field for summary tasks set to Yes for any subtasks to roll up to them.
Public propertyCode exampleSaveFormat
Gets or sets the format in which the document will be saved if this save options object is used.
Public propertyCode exampleShowProjectSummaryTask Obsolete.
Gets or sets a value indicating whether project summary task if set to true.
Public propertyCode exampleStartDate
Gets or sets the date to start rendering from.
Public propertyCode exampleTasksComparer
Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart.
Public propertyCode exampleTasksFilter
Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
Public propertyCode exampleTextStyles
Gets or sets the list of the instances of the TextStyle class that appear in project view.
Public propertyCode exampleTimescale
Gets or sets the Timescale value which is used to control how timescale (if present) is rendered when project is saved to graphical format.
Public propertyCode exampleTimescaleTier Obsolete.
Gets or sets the timescale tier of the Gantt Chart view. The default value is null.
Public propertyCode exampleUseGradientBrush
Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart.
Public propertyCode exampleView
Gets or sets a list of the view columns to render (GanttChartColumn). If not set then task ids, task names, start and finish are rendered only.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
An instance of any derived class from SaveOptions class is passed to the stream Save or string Save overloads for the user to define custom options when saving a document.
Examples
Shows how to set the option whether row height should be increased to fit its content.
var project = new Project(DataDir + "CreateProject2.mpp");
SaveOptions options = new PdfSaveOptions
{
    // Set option fit content to true
    FitContent = true,
    Timescale = Timescale.Months,
    PresentationFormat = PresentationFormat.TaskUsage
};
project.Save(OutDir + "FitContentsToCellSize_out.pdf", options);
See Also
Inheritance Hierarchy
SystemObject
  Aspose.Tasks.SavingSaveOptions
    Aspose.Tasks.SavingCsvOptions
    Aspose.Tasks.SavingHtmlSaveOptions
    Aspose.Tasks.SavingImageSaveOptions
    Aspose.Tasks.SavingPdfSaveOptions
    Aspose.Tasks.SavingPrimaveraSaveOptions
    Aspose.Tasks.SavingPrimaveraXmlSaveOptions
    Aspose.Tasks.SavingPrintOptions
    Aspose.Tasks.SavingSpreadsheet2003SaveOptions
    Aspose.Tasks.SavingSvgOptions
    Aspose.Tasks.SavingXamlOptions
    Aspose.Tasks.SavingXlsxOptions
    Aspose.Tasks.SavingXpsOptions