SaveOptionsUseGradientBrush Property

Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart.

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

Property Value

Type: Boolean
Examples
shows how to set a value indicating whether gradient brush should be used when rendering Gantt Chart.
var project = new Project(DataDir + "Project2.mpp");

SaveOptions options = new XamlOptions
{
    UseGradientBrush = false
};
project.Save(OutDir + "ChangeGanttBarsColorGradient_Solid_out.xaml", options);

options.UseGradientBrush = true;
project.Save(OutDir + "ChangeGanttBarsColorGradient_Gradient_out.xaml", options);
See Also