SaveOptionsTimescaleTier Property

Gets or sets the timescale tier of the Gantt Chart view. The default value is null.

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

Property Value

Type: TimescaleTier
Shows how to work with timescale tiers through save options.
var project = new Project(DataDir + "CreateProject2.mpp");

// ...
var options = new ImageSaveOptions(SaveFileFormat.PNG)
    // set the timescale tier of the Gantt Chart view which is used
    // to control a scale of output image
    TimescaleTier = new TimescaleTier(TimescaleUnit.Months, 1)

// ...

// save the project as an image
project.Save(OutDir + "WorkWithTimescaleTier_out.png", options);
See Also