Project Methods

The Project type exposes the following members.

Methods
  NameDescription
Public methodCode exampleCopyTo(Project)
Copies project's main data and properties to another project.
Public methodCode exampleCopyTo(Project, CopyToOptions)
Copies project's main data and properties to another project.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetT
Returns the value to which the property is mapped in this container.
Public methodCode exampleGetBaselineSaveTime
Returns the baseline save time.
Public methodCode exampleGetDuration(Double)
Gets Duration object with the specified number of units and default duration format which is defined in project's settings DurationFormat.
Public methodCode exampleGetDuration(Double, TimeUnitType)
Gets Duration object with the specified number of TimeUnitType units.
Public methodGetDuration(TimeSpan, TimeUnitType)
Gets Duration object with the specified TimeSpan value and specified TimeUnitType value.
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetPageCount
Returns page count for the project to be rendered using default Timescale(Days).
Public methodCode exampleGetPageCount(PresentationFormat)
Returns page count for the project to be rendered using default Timescale(Days) and given PresentationFormat
Public methodCode exampleGetPageCount(SaveOptions)
Returns page count for the project to be rendered using given SaveOptions.
Public methodCode exampleGetPageCount(Timescale)
Returns page count for the project to be rendered using given Timescale.
Public methodCode exampleGetPageCount(PageSize, Timescale)
Returns page count for the project to be rendered using given Timescale and PageSize.
Public methodCode exampleGetPageCount(PresentationFormat, Timescale)
Returns page count for the project to be rendered using given Timescale and PresentationFormat.
Public methodCode exampleGetPageCount(PageSize, Timescale, DateTime, DateTime)
Returns page count for the project to be rendered using given Timescale, PresentationFormat and date range.
Public methodCode exampleGetPredecessors
Returns a collection of task links which are predecessors of the specified task.
Public methodStatic memberCode exampleGetProjectFileInfo(Stream)
Gets project file info from the stream.
Public methodStatic memberCode exampleGetProjectFileInfo(String)
Read project file info from the file.
Public methodGetType (Inherited from Object.)
Public methodCode exampleGetWork
Gets Duration object with the specified Double value and default work format.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode examplePrint
Prints project to the default printer with default printer settings using the standard (no User Interface) print controller.
Public methodCode examplePrint(PrinterSettings)
Prints project according to the specified printer settings using the standard (no User Interface) print controller.
Public methodCode examplePrint(String)
Prints project to the specified printer with default printer settings using the standard (no User Interface) print controller.
Public methodCode examplePrint(PrintOptions)
Prints project to the default printer with default printer settings and custom save options using the standard (no User Interface) print controller.
Public methodCode examplePrint(PrinterSettings, PrintOptions)
Prints project according to the specified printer settings and custom save options using the standard (no User Interface) print controller.
Public methodCode examplePrint(PrinterSettings, String)
Prints project according to the specified printer settings using the standard (no User Interface) print controller.
Public methodCode examplePrint(PrinterSettings, PrintOptions, String)
Prints project according to the specified printer settings, custom save options and the specified document name using the standard (no User Interface) print controller.
Public methodCode exampleRecalculate
Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields.
Public methodCode exampleRecalculate(Boolean)
Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields with optional validation.
Public methodCode exampleRecalculateResourceFields
Recalculates Id, Start and Finish of resources.
Public methodCode exampleRecalculateResourceStartFinish
Recalculates Start and Finish of resources.
Public methodCode exampleRemoveInvalidResourceAssignments
Eliminates invalid resource assignments from the project resource assignments list.
Public methodCode exampleRenumberWBSCode
Renumber WBS code of all tasks.
Public methodCode exampleRenumberWBSCode(ListInt32)
Renumber WBS code of passed tasks.
Public methodCode exampleRescheduleUncompletedWorkToStartAfter(DateTime)
Reschedules uncompleted project work to start after a specified date.
Public methodCode exampleRescheduleUncompletedWorkToStartAfter(DateTime, ListTask)
Reschedules uncompleted work for a specified list of tasks to start after a specified date.
Public methodSave(String)
Saves the project data to the file in mpp format.
Public methodCode exampleSave(Stream, MPPSaveOptions)
Saves the project to a stream using the specified save options.
Public methodCode exampleSave(Stream, SaveFileFormat)
Saves the project data to the stream.
Public methodCode exampleSave(Stream, SaveOptions)
Saves the project to a stream using the specified save options.
Public methodCode exampleSave(String, MPPSaveOptions)
Saves the document to mpp file format using the specified save options.
Public methodCode exampleSave(String, SaveFileFormat)
Saves the project data to the file.
Public methodCode exampleSave(String, SaveOptions)
Saves the document to a file using the specified save options.
Public methodCode exampleSaveAsTemplate(Stream)
Saves the project as a template to a specified stream.
Public methodCode exampleSaveAsTemplate(String)
Saves the project as a template to the specified file path.
Public methodCode exampleSaveAsTemplate(Stream, SaveTemplateOptions)
Saves the project as a template to a specified stream.
Public methodCode exampleSaveAsTemplate(String, SaveTemplateOptions)
Saves the project as a template.
Public methodCode exampleSaveReport(Stream)
Saves the project overview report to the stream.
Public methodCode exampleSaveReport(String)
Saves the project overview report to PDF file.
Public methodCode exampleSaveReport(Stream, ReportType)
Saves the project report of the specified type to the specified stream.
Public methodCode exampleSaveReport(String, ReportType)
Saves the project report of the specified type in PDF format to the specified file path.
Public methodCode exampleSelectAllChildTasks
Recursively collects all child tasks of the root task.
Public methodCode exampleSet(KeyDateTime, PrjKey, DateTime)
Maps the specified property to the specified value in this container.
Public methodCode exampleSetT(KeyT, PrjKey, T)
Maps the specified property to the specified value in this container.
Public methodCode exampleSetBaseline(BaselineType)
Saves baseline fields to the specified baseline for the entire project.
Public methodCode exampleSetBaseline(BaselineType, IEnumerableTask)
Saves baseline fields to the specified baseline for the selected tasks.
Public methodCode exampleSetBaselineSaveTime
Sets the baseline save time.
Public methodToString (Inherited from Object.)
Public methodCode exampleUpdateProjectWorkAsComplete(DateTime, Boolean)
Updates all work as complete through a specified date for the entire project.
Public methodCode exampleUpdateProjectWorkAsComplete(DateTime, Boolean, ListTask)
Updates all work as complete through a specified date for the specified list of tasks.
See Also