ProjectView

ProjectView class

Project’s view class

public class ProjectView

Constructors

NameDescription
ProjectView(IEnumerable<ViewColumn>)Initializes a new instance of the ProjectView class.

Properties

NameDescription
Columns { get; }Gets the project view columns.

Methods

NameDescription
static GetDefaultAssignmentView()Includes Uid, task name, resource name, work and duration assignment columns.
static GetDefaultGanttChartView()Includes id, indicators, name, duration, start and finish task columns.
static GetDefaultResourceSheetView()Includes Uid, resource name, type, material label, initials, group, max units, standard rate, overtime rate, cost per use, accrue at, base calendar and code resource columns.
static GetDefaultResourceUsageView()Includes Uid, name, start, finish and work resource columns.
static GetDefaultTaskSheetView()Includes id, indicators, name, duration, start, finish, predecessors and resource names task columns.

Examples

Shows how to save a project with assignment view.

var project = new Project(DataDir + "Project2.mpp");
SaveOptions options = new PdfSaveOptions
{
    Timescale = Timescale.Months,
    View = ProjectView.GetDefaultAssignmentView()
};

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

See Also