SaveOptionsFitContent Property

Gets or sets a value indicating whether row height should be increased to fit its content.

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

Property Value

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