Enum PageSize

PageSize enumeration

Specifies page size.

public enum PageSize

Values

NameValueDescription
Letter0The size of the Letter page in points is 792 × 612
Ledger1The size of the Ledger page in points is 1224 × 792
A02The size of the A0 page in points is 3371 × 2384
A13The size of the A1 page in points is 2384 × 1685
A24The size of the A2 page in points is 1684 × 1190
A35The size of the A3 page in points is 1190 × 842
A46The size of the A4 page in points is 842 × 595
DefinedInView7Use page size defined in View’s PageSettings (View.PageInfo.PageSettings).

Examples

Shows how to set a value indicating that subtasks on the summary task bar must be rolled up.

var project = new Project(DataDir + "Project2.mpp");

project.DisplayOptions.ShowProjectSummaryTask = true;
project.Set(Prj.ShowProjectSummaryTask, true);

var options = new PdfSaveOptions
{
    PresentationFormat = PresentationFormat.GanttChart,
    FitContent = true,
    RollUpGanttBars = true,

    // OR
    // options.RollUpGanttBars = false;
    // DrawNonWorkingTime = true,
    PageSize = PageSize.A3
};

project.Save(OutDir + "RenderGanttChartWithBarsRolledUp_out.pdf", options);

See Also