HtmlSaveOptionsUseGradientBrush Property

Gets or sets a value indicating whether to use gradient brush when rendering project layout.
Currently using of gradient brush is not supported when rendering to HTML.

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.5
public override bool UseGradientBrush { get; set; }

Property Value

Type: Boolean
Shows how to set custom font that will be used to export the project in HTML file.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

var options = new HtmlSaveOptions
                      PresentationFormat = PresentationFormat.GanttChart,
                      FitContent = true,
                      UseProjectDefaultFont = false,
                      DefaultFontName = "Segoe UI Black",
                      UseGradientBrush = false
project.Save(OutDir + "AddDefaultFontDuringSavingAsHtml_out.html", options);
See Also