SaveOptions.FitContent

SaveOptions.FitContent property

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

public bool FitContent { get; set; }

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