Aspose.Tasks for C++
Aspose::Tasks::Project Class Reference

Represents a project. More...

#include <Project.h>

Inherits Aspose::Tasks::IContainer< K >, and Aspose::LicenseV2::Venture::IVentureLicensed.

Public Member Functions

System::SharedPtr< Viewget_DefaultView ()
 Gets default view of the project. More...
 
void set_DefaultView (const System::SharedPtr< View > &value)
 Sets default view of the project. More...
 
const System::SharedPtr
< Aspose::Tasks::VbaProject > & 
get_VbaProject () const
 Gets an instance of VbaProject class. More...
 
System::SharedPtr
< ProjectDisplayOptions
get_DisplayOptions () const
 Gets an instance of the ProjectDisplayOptions class. More...
 
Aspose::Tasks::CalculationMode get_CalculationMode () const
 Gets calculation mode of a project. Can be one of the values of CalculationMode enumeration. More...
 
void set_CalculationMode (Aspose::Tasks::CalculationMode value)
 Sets calculation mode of a project. Can be one of the values of CalculationMode enumeration. More...
 
const System::SharedPtr< Task > & get_RootTask () const
 Gets the root of the tree of tasks. More...
 
const System::SharedPtr
< TaskLinkCollection > & 
get_TaskLinks () const
 Gets TaskLinkCollection object. More...
 
const System::SharedPtr
< CalendarCollection > & 
get_Calendars () const
 Gets CalendarCollection object of this Project instance. More...
 
const System::SharedPtr
< ResourceCollection > & 
get_Resources () const
 Gets ResourceCollection object. More...
 
const System::SharedPtr
< OutlineCodeDefinitionCollection > & 
get_OutlineCodes () const
 Gets OutlineCodeDefinitionCollection object. The collection of outline code definitions associated with a project. More...
 
const System::SharedPtr
< ResourceAssignmentCollection > & 
get_ResourceAssignments () const
 Gets ResourceAssignmentCollection object. More...
 
const System::SharedPtr
< WeekDayCollection > & 
get_DefaultWeekWorkingDays () const
 Gets the instance of WeekDayCollection class which represents a collection of project default week working days and working times. More...
 
const System::SharedPtr
< Properties::BuiltInProjectPropertyCollection > & 
get_BuiltInProps () const
 Gets project's built-in properties collection. More...
 
const System::SharedPtr
< Properties::CustomProjectPropertyCollection > & 
get_CustomProps () const
 Gets project's custom properties collection. More...
 
const System::SharedPtr
< ExtendedAttributeDefinitionCollection > & 
get_ExtendedAttributes () const
 Gets ExtendedAttributeDefinitionCollection object. The collection of extended attribute (custom fields) definitions associated with a project. More...
 
System::SharedPtr< TaskCollectionget_CriticalPath ()
 Gets a collection which contains a list of Critical tasks which comprise Critical Path of this project. More...
 
System::SharedPtr
< FilterCollection
get_TaskFilters ()
 Gets all the task-based filter definitions. TaskFilters is a collection of Filter objects. More...
 
System::SharedPtr
< FilterCollection
get_ResourceFilters ()
 Gets all the resource-based filter definitions. ResourceFilters is a collection of Filter objects. More...
 
System::SharedPtr< ViewCollectionget_Views ()
 Gets a list of View objects. More...
 
System::SharedPtr
< TableCollection
get_Tables ()
 Gets a list of Table objects. More...
 
System::SharedPtr
< GroupCollection
get_TaskGroups ()
 Gets all the task-based group definitions. TaskGroups is a collection of Group objects. More...
 
System::SharedPtr
< GroupCollection
get_ResourceGroups ()
 Gets all of the resource-based group definitions. ResourceGroups is a collection of Group objects. More...
 
const System::SharedPtr
< Aspose::Tasks::WBSCodeDefinition > & 
get_WBSCodeDefinition () const
 Gets WBS Code Definition for the project. More...
 
void set_WBSCodeDefinition (const System::SharedPtr< Aspose::Tasks::WBSCodeDefinition > &value)
 Sets WBS Code Definition for the project. More...
 
System::SharedPtr
< OleObjectCollection
get_OleObjects () const
 Gets a collection containing the instances of the OleObject class which are linked or embedded to this project file. More...
 
const System::SharedPtr
< PrimaveraProjectProperties > & 
get_PrimaveraProperties () const
 Gets an object containing Primavera-specific properties for a project read from Primavera file. More...
 
NullableBool get_ActualsInSync ()
 Gets a value indicating whether ActualsInSync is set or not. More...
 
void set_ActualsInSync (NullableBool value)
 Sets a value indicating whether ActualsInSync is set or not. More...
 
NullableBool get_AdminProject ()
 Gets a value indicating whether AdminProject is set or not. More...
 
void set_AdminProject (NullableBool value)
 Sets a value indicating whether AdminProject is set or not. More...
 
NullableBool get_AreEditableActualCosts ()
 Gets a value indicating whether AreEditableActualCosts is set or not. More...
 
void set_AreEditableActualCosts (NullableBool value)
 Sets a value indicating whether AreEditableActualCosts is set or not. More...
 
System::String get_Author ()
 Gets a value of Author. More...
 
void set_Author (const System::String &value)
 Sets a value of Author. More...
 
NullableBool get_AutoAddNewResourcesAndTasks ()
 Gets a value indicating whether AutoAddNewResourcesAndTasks is set or not. More...
 
void set_AutoAddNewResourcesAndTasks (NullableBool value)
 Sets a value indicating whether AutoAddNewResourcesAndTasks is set or not. More...
 
NullableBool get_Autolink ()
 Gets a value indicating whether Autolink is set or not. More...
 
void set_Autolink (NullableBool value)
 Sets a value indicating whether Autolink is set or not. More...
 
BaselineType get_BaselineForEarnedValue ()
 Gets a value of BaselineForEarnedValue. More...
 
void set_BaselineForEarnedValue (BaselineType value)
 Sets a value of BaselineForEarnedValue. More...
 
System::SharedPtr
< Aspose::Tasks::Calendar
get_Calendar ()
 Gets a value of Calendar. More...
 
void set_Calendar (const System::SharedPtr< Aspose::Tasks::Calendar > &value)
 Sets a value of Calendar. More...
 
System::String get_Category ()
 Gets a value of Category. More...
 
void set_Category (const System::String &value)
 Sets a value of Category. More...
 
System::String get_Comments ()
 Gets a value of Comments. More...
 
void set_Comments (const System::String &value)
 Sets a value of Comments. More...
 
System::String get_Company ()
 Gets a value of Company. More...
 
void set_Company (const System::String &value)
 Sets a value of Company. More...
 
System::DateTime get_CreationDate ()
 Gets a value of CreationDate. More...
 
void set_CreationDate (System::DateTime value)
 Sets a value of CreationDate. More...
 
int32_t get_CriticalSlackLimit ()
 Gets a value of CriticalSlackLimit. More...
 
void set_CriticalSlackLimit (int32_t value)
 Sets a value of CriticalSlackLimit. More...
 
System::String get_CurrencyCode ()
 Gets a value of CurrencyCode. More...
 
void set_CurrencyCode (const System::String &value)
 Sets a value of CurrencyCode. More...
 
int32_t get_CurrencyDigits ()
 Gets a value of CurrencyDigits. More...
 
void set_CurrencyDigits (int32_t value)
 Sets a value of CurrencyDigits. More...
 
System::String get_CurrencySymbol ()
 Gets a value of CurrencySymbol. More...
 
void set_CurrencySymbol (const System::String &value)
 Sets a value of CurrencySymbol. More...
 
CurrencySymbolPositionType get_CurrencySymbolPosition ()
 Gets a value of CurrencySymbolPosition. More...
 
void set_CurrencySymbolPosition (CurrencySymbolPositionType value)
 Sets a value of CurrencySymbolPosition. More...
 
System::DateTime get_CurrentDate ()
 Gets a value of CurrentDate. More...
 
void set_CurrentDate (System::DateTime value)
 Sets a value of CurrentDate. More...
 
Aspose::Tasks::DateFormat get_DateFormat ()
 Gets a value of DateFormat. More...
 
void set_DateFormat (Aspose::Tasks::DateFormat value)
 Sets a value of DateFormat. More...
 
System::String get_CustomDateFormat ()
 Gets a value of CustomDateFormat. More...
 
void set_CustomDateFormat (const System::String &value)
 Sets a value of CustomDateFormat. More...
 
int32_t get_DaysPerMonth ()
 Gets a value of DaysPerMonth. More...
 
void set_DaysPerMonth (int32_t value)
 Sets a value of DaysPerMonth. More...
 
System::DateTime get_DefaultFinishTime ()
 Gets a value of DefaultFinishTime. More...
 
void set_DefaultFinishTime (System::DateTime value)
 Sets a value of DefaultFinishTime. More...
 
CostAccrualType get_DefaultFixedCostAccrual ()
 Gets a value of DefaultFixedCostAccrual. More...
 
void set_DefaultFixedCostAccrual (CostAccrualType value)
 Sets a value of DefaultFixedCostAccrual. More...
 
double get_DefaultOvertimeRate ()
 Gets a value of DefaultOvertimeRate. More...
 
void set_DefaultOvertimeRate (double value)
 Sets a value of DefaultOvertimeRate. More...
 
double get_DefaultStandardRate ()
 Gets a value of DefaultStandardRate. More...
 
void set_DefaultStandardRate (double value)
 Sets a value of DefaultStandardRate. More...
 
System::DateTime get_DefaultStartTime ()
 Gets a value of DefaultStartTime. More...
 
void set_DefaultStartTime (System::DateTime value)
 Sets a value of DefaultStartTime. More...
 
EarnedValueMethodType get_DefaultTaskEVMethod ()
 Gets a value of DefaultTaskEVMethod. More...
 
void set_DefaultTaskEVMethod (EarnedValueMethodType value)
 Sets a value of DefaultTaskEVMethod. More...
 
TaskType get_DefaultTaskType ()
 Gets a value of DefaultTaskType. More...
 
void set_DefaultTaskType (TaskType value)
 Sets a value of DefaultTaskType. More...
 
TimeUnitType get_DurationFormat ()
 Gets a value of DurationFormat. More...
 
void set_DurationFormat (TimeUnitType value)
 Sets a value of DurationFormat. More...
 
EarnedValueMethodType get_EarnedValueMethod ()
 Gets a value of EarnedValueMethod. More...
 
void set_EarnedValueMethod (EarnedValueMethodType value)
 Sets a value of EarnedValueMethod. More...
 
System::DateTime get_ExtendedCreationDate ()
 Gets a value of ExtendedCreationDate. More...
 
void set_ExtendedCreationDate (System::DateTime value)
 Sets a value of ExtendedCreationDate. More...
 
System::DateTime get_FinishDate ()
 Gets a value of FinishDate. More...
 
void set_FinishDate (System::DateTime value)
 Sets a value of FinishDate. More...
 
NullableBool get_FiscalYearStart ()
 Gets a value indicating whether FiscalYearStart is set or not. More...
 
void set_FiscalYearStart (NullableBool value)
 Sets a value indicating whether FiscalYearStart is set or not. More...
 
Month get_FyStartDate ()
 Gets a value of FyStartDate. More...
 
void set_FyStartDate (Month value)
 Sets a value of FyStartDate. More...
 
NullableBool get_HonorConstraints ()
 Gets a value indicating whether HonorConstraints is set or not. More...
 
void set_HonorConstraints (NullableBool value)
 Sets a value indicating whether HonorConstraints is set or not. More...
 
System::String get_HyperlinkBase ()
 Gets a value of HyperlinkBase. More...
 
void set_HyperlinkBase (const System::String &value)
 Sets a value of HyperlinkBase. More...
 
NullableBool get_InsertedProjectsLikeSummary ()
 Gets a value indicating whether InsertedProjectsLikeSummary is set or not. More...
 
void set_InsertedProjectsLikeSummary (NullableBool value)
 Sets a value indicating whether InsertedProjectsLikeSummary is set or not. More...
 
NullableBool get_KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled ()
 Gets a value indicating whether KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled is set or not. More...
 
void set_KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled (NullableBool value)
 Sets a value indicating whether KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled is set or not. More...
 
System::String get_Keywords ()
 Gets a value of Keywords. More...
 
void set_Keywords (const System::String &value)
 Sets a value of Keywords. More...
 
System::String get_LastAuthor ()
 Gets a value of LastAuthor. More...
 
void set_LastAuthor (const System::String &value)
 Sets a value of LastAuthor. More...
 
System::DateTime get_LastPrinted ()
 Gets a value of LastPrinted. More...
 
void set_LastPrinted (System::DateTime value)
 Sets a value of LastPrinted. More...
 
System::DateTime get_LastSaved ()
 Gets a value of LastSaved. More...
 
void set_LastSaved (System::DateTime value)
 Sets a value of LastSaved. More...
 
System::String get_Manager ()
 Gets a value of Manager. More...
 
void set_Manager (const System::String &value)
 Sets a value of Manager. More...
 
NullableBool get_MicrosoftProjectServerURL ()
 Gets a value indicating whether MicrosoftProjectServerURL is set or not. More...
 
void set_MicrosoftProjectServerURL (NullableBool value)
 Sets a value indicating whether MicrosoftProjectServerURL is set or not. More...
 
int32_t get_MinutesPerDay ()
 Gets a value of MinutesPerDay. More...
 
void set_MinutesPerDay (int32_t value)
 Sets a value of MinutesPerDay. More...
 
int32_t get_MinutesPerWeek ()
 Gets a value of MinutesPerWeek. More...
 
void set_MinutesPerWeek (int32_t value)
 Sets a value of MinutesPerWeek. More...
 
NullableBool get_MoveCompletedEndsBack ()
 Gets a value indicating whether MoveCompletedEndsBack is set or not. More...
 
void set_MoveCompletedEndsBack (NullableBool value)
 Sets a value indicating whether MoveCompletedEndsBack is set or not. More...
 
NullableBool get_MoveCompletedEndsForward ()
 Gets a value indicating whether MoveCompletedEndsForward is set or not. More...
 
void set_MoveCompletedEndsForward (NullableBool value)
 Sets a value indicating whether MoveCompletedEndsForward is set or not. More...
 
NullableBool get_MoveRemainingStartsBack ()
 Gets a value indicating whether MoveRemainingStartsBack is set or not. More...
 
void set_MoveRemainingStartsBack (NullableBool value)
 Sets a value indicating whether MoveRemainingStartsBack is set or not. More...
 
NullableBool get_MoveRemainingStartsForward ()
 Gets a value indicating whether MoveRemainingStartsForward is set or not. More...
 
void set_MoveRemainingStartsForward (NullableBool value)
 Sets a value indicating whether MoveRemainingStartsForward is set or not. More...
 
NullableBool get_MultipleCriticalPaths ()
 Gets a value indicating whether MultipleCriticalPaths is set or not. More...
 
void set_MultipleCriticalPaths (NullableBool value)
 Sets a value indicating whether MultipleCriticalPaths is set or not. More...
 
System::String get_Name ()
 Gets a value of Name. More...
 
void set_Name (const System::String &value)
 Sets a value of Name. More...
 
NullableBool get_NewTasksAreManual ()
 Gets a value indicating whether NewTasksAreManual is set or not. More...
 
void set_NewTasksAreManual (NullableBool value)
 Sets a value indicating whether NewTasksAreManual is set or not. More...
 
NullableBool get_NewTasksEffortDriven ()
 Gets a value indicating whether NewTasksEffortDriven is set or not. More...
 
void set_NewTasksEffortDriven (NullableBool value)
 Sets a value indicating whether NewTasksEffortDriven is set or not. More...
 
NullableBool get_NewTasksEstimated ()
 Gets a value indicating whether NewTasksEstimated is set or not. More...
 
void set_NewTasksEstimated (NullableBool value)
 Sets a value indicating whether NewTasksEstimated is set or not. More...
 
TaskStartDateType get_NewTaskStartDate ()
 Gets a value of NewTaskStartDate. More...
 
void set_NewTaskStartDate (TaskStartDateType value)
 Sets a value of NewTaskStartDate. More...
 
NullableBool get_ProjectExternallyEdited ()
 Gets a value indicating whether ProjectExternallyEdited is set or not. More...
 
void set_ProjectExternallyEdited (NullableBool value)
 Sets a value indicating whether ProjectExternallyEdited is set or not. More...
 
NullableBool get_RemoveFileProperties ()
 Gets a value indicating whether RemoveFileProperties is set or not. More...
 
void set_RemoveFileProperties (NullableBool value)
 Sets a value indicating whether RemoveFileProperties is set or not. More...
 
int32_t get_Revision ()
 Gets a value of Revision. More...
 
void set_Revision (int32_t value)
 Sets a value of Revision. More...
 
int32_t get_SaveVersion ()
 Gets a value of SaveVersion. More...
 
void set_SaveVersion (int32_t value)
 Sets a value of SaveVersion. More...
 
NullableBool get_ScheduleFromStart ()
 Gets a value indicating whether ScheduleFromStart is set or not. More...
 
void set_ScheduleFromStart (NullableBool value)
 Sets a value indicating whether ScheduleFromStart is set or not. More...
 
bool get_ShowProjectSummaryTask ()
 Gets a value indicating whether ShowProjectSummaryTask is set or not. More...
 
void set_ShowProjectSummaryTask (bool value)
 Sets a value indicating whether ShowProjectSummaryTask is set or not. More...
 
NullableBool get_SplitsInProgressTasks ()
 Gets a value indicating whether SplitsInProgressTasks is set or not. More...
 
void set_SplitsInProgressTasks (NullableBool value)
 Sets a value indicating whether SplitsInProgressTasks is set or not. More...
 
NullableBool get_SpreadActualCost ()
 Gets a value indicating whether SpreadActualCost is set or not. More...
 
void set_SpreadActualCost (NullableBool value)
 Sets a value indicating whether SpreadActualCost is set or not. More...
 
NullableBool get_SpreadPercentComplete ()
 Gets a value indicating whether SpreadPercentComplete is set or not. More...
 
void set_SpreadPercentComplete (NullableBool value)
 Sets a value indicating whether SpreadPercentComplete is set or not. More...
 
System::DateTime get_StartDate ()
 Gets a value of StartDate. More...
 
void set_StartDate (System::DateTime value)
 Sets a value of StartDate. More...
 
System::DateTime get_StatusDate ()
 Gets a value of StatusDate. More...
 
void set_StatusDate (System::DateTime value)
 Sets a value of StatusDate. More...
 
System::String get_Subject ()
 Gets a value of Subject. More...
 
void set_Subject (const System::String &value)
 Sets a value of Subject. More...
 
NullableBool get_TaskUpdatesResource ()
 Gets a value indicating whether TaskUpdatesResource is set or not. More...
 
void set_TaskUpdatesResource (NullableBool value)
 Sets a value indicating whether TaskUpdatesResource is set or not. More...
 
System::String get_Template ()
 Gets a value of Template. More...
 
void set_Template (const System::String &value)
 Sets a value of Template. More...
 
System::DateTime get_TimescaleFinish ()
 Gets a value of TimescaleFinish. More...
 
void set_TimescaleFinish (System::DateTime value)
 Sets a value of TimescaleFinish. More...
 
System::DateTime get_TimescaleStart ()
 Gets a value of TimescaleStart. More...
 
void set_TimescaleStart (System::DateTime value)
 Sets a value of TimescaleStart. More...
 
System::String get_Title ()
 Gets a value of Title. More...
 
void set_Title (const System::String &value)
 Sets a value of Title. More...
 
System::String get_Uid ()
 Gets a value of Uid. More...
 
void set_Uid (const System::String &value)
 Sets a value of Uid. More...
 
NullableBool get_UpdateManuallyScheduledTasksWhenEditingLinks ()
 Gets a value indicating whether UpdateManuallyScheduledTasksWhenEditingLinks is set or not. More...
 
void set_UpdateManuallyScheduledTasksWhenEditingLinks (NullableBool value)
 Sets a value indicating whether UpdateManuallyScheduledTasksWhenEditingLinks is set or not. More...
 
DayType get_WeekStartDay ()
 Gets a value of WeekStartDay. More...
 
void set_WeekStartDay (DayType value)
 Sets a value of WeekStartDay. More...
 
TimeUnitType get_WorkFormat ()
 Gets a value of WorkFormat. More...
 
void set_WorkFormat (TimeUnitType value)
 Sets a value of WorkFormat. More...
 
System::Guid get_Guid ()
 Gets a value of Guid. More...
 
void set_Guid (System::Guid value)
 Sets a value of Guid. More...
 
bool get_AutoCalculateAssignmentCosts ()
 Gets whether assignment cost and remaining cost should be auto calculated using assignment's work and resource rates. More...
 
void set_AutoCalculateAssignmentCosts (bool value)
 Sets whether assignment cost and remaining cost should be auto calculated using assignment's work and resource rates. More...
 
 Project ()
 Initializes a new instance of the Project class. More...
 
 Project (const System::String &projectTemplate, const System::String &protectionPassword)
 Initializes a new instance of the Project class from a password protected template (existent mpp or mpt file). More...
 
 Project (const System::String &projectTemplate)
 Initializes a new instance of the Project class from a template (existent mpp or mpt file). More...
 
 Project (const System::SharedPtr< System::IO::Stream > &stream, const System::SharedPtr< PrimaveraReadOptions > &options)
 Initializes a new instance of the Project class from the Stream with the specified instance of the PrimaveraReadOptions class. More...
 
 Project (const System::String &projectTemplate, ParseErrorCallback parseErrorHandler)
 Initializes a new instance of the Project class from a template (existent mpp or mpt file). More...
 
 Project (const System::SharedPtr< System::IO::Stream > &stream)
 Initializes a new instance of the Project class from a stream. More...
 
 Project (const System::SharedPtr< System::IO::StreamReader > &reader)
 Initializes a new instance of the Project class from a StreamReader instance. More...
 
 Project (const System::String &projectTemplate, const System::SharedPtr< PrimaveraReadOptions > &options)
 Initializes a new instance of the Project class from a template (existent MPP or MPT file) with the specified instance of the PrimaveraReadOptions class. More...
 
 Project (const System::SharedPtr< Connectivity::DbSettings > &settings)
 Initializes a new instance of the Project class to read data from a database which is specified by the instance of the DbSettings class. More...
 
 Project (const System::SharedPtr< System::IO::Stream > &stream, ParseErrorCallback parseErrorHandler)
 Initializes a new instance of the Project class from a template(existent mpp or mpt file). More...
 
 Project (const System::SharedPtr< System::IO::Stream > &stream, const System::String &protectionPassword)
 Initializes a new instance of the Project class from a template(existent mpp or mpt file). More...
 
 Project (const System::String &projectTemplate, const System::SharedPtr< LoadOptions > &options)
 Initializes a new instance of the Project class from a template (existent mpp or mpt file) with the specified instance of the LoadOptions class. More...
 
 Project (const System::SharedPtr< System::IO::Stream > &stream, const System::SharedPtr< LoadOptions > &options)
 Initializes a new instance of the Project class from the Stream with the specified instance of the LoadOptions class. More...
 
System::SharedPtr
< System::Collections::Generic::IEnumerable
< System::SharedPtr< Task > > > 
SelectAllChildTasks ()
 Recursively collects all child tasks of the root task. More...
 
System::SharedPtr
< System::Collections::Generic::IEnumerable
< System::SharedPtr< Task > > > 
EnumerateAllChildTasks ()
 Recursively enumerates all project's tasks including root task. More...
 
System::SharedPtr
< TaskLinkCollection
GetPredecessors (const System::SharedPtr< Task > &task)
 Returns a collection of task links which are predecessors of the specified task. More...
 
template<typename T >
Get (const Key< T, PrjKey > &key) const
 Returns the value to which the property is mapped in this container. More...
 
template<typename T >
void Set (const Key< T, PrjKey > &key, const T &val)
 Maps the specified property to the specified value in this container. More...
 
void Set (const Key< System::DateTime, PrjKey > &key, const System::DateTime &val)
 Maps the specified property to the specified value in this container. More...
 
void RecalculateResourceStartFinish ()
 Recalculates Start and Finish of resources. More...
 
void RecalculateResourceFields ()
 Recalculates Id, Start and Finish of resources. More...
 
void RemoveInvalidResourceAssignments ()
 Eliminates invalid resource assignments from the project resource assignments list. More...
 
System::DateTime GetBaselineSaveTime (BaselineType baselineNumber)
 Returns the baseline save time. More...
 
void SetBaselineSaveTime (BaselineType baselineNumber, System::DateTime value)
 Sets the baseline save time. More...
 
void Recalculate ()
 Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields. More...
 
void Recalculate (bool validate)
 Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields with optional validation. More...
 
void Save (const System::String &filename, const System::SharedPtr< Saving::SimpleSaveOptions > &options)
 Saves the document to a file using the specified save options. More...
 
void Save (const System::String &filename, Saving::SaveFileFormat format)
 Saves the project data to the file. More...
 
void Save (const System::String &filename)
 Saves the project data to the file in mpp format. More...
 
void Save (const System::SharedPtr< System::IO::Stream > &stream, const System::SharedPtr< Saving::SimpleSaveOptions > &options)
 Saves the project to a stream using the specified save options. More...
 
void Save (const System::SharedPtr< System::IO::Stream > &stream, Saving::SaveFileFormat format)
 Saves the project data to the stream. More...
 
void SaveReport (const System::SharedPtr< System::IO::Stream > &stream)
 Saves the project overview report to the stream. More...
 
void SaveReport (const System::String &fileName)
 Saves the project overview report to PDF file. More...
 
void SaveReport (const System::SharedPtr< System::IO::Stream > &stream, Visualization::ReportType reportType)
 Saves the project report of the specified type to the specified stream. More...
 
void SaveReport (const System::String &fileName, Visualization::ReportType reportType)
 Saves the project report of the specified type in PDF format to the specified file path. More...
 
void SaveAsTemplate (const System::String &fileName, const System::SharedPtr< Saving::SaveTemplateOptions > &options)
 Saves the project as a template. More...
 
void SaveAsTemplate (const System::String &fileName)
 Saves the project as a template to the specified file path. More...
 
void SaveAsTemplate (const System::SharedPtr< System::IO::Stream > &stream)
 Saves the project as a template to a specified stream. More...
 
void SaveAsTemplate (const System::SharedPtr< System::IO::Stream > &stream, const System::SharedPtr< Saving::SaveTemplateOptions > &options)
 Saves the project as a template to a specified stream. More...
 
int32_t GetPageCount (const System::SharedPtr< Saving::SaveOptions > &saveOptions)
 Returns page count for the project to be rendered using given SaveOptions. More...
 
int32_t GetPageCount ()
 Returns page count for the project to be rendered using default Timescale(Days). More...
 
int32_t GetPageCount (Visualization::Timescale scale)
 Returns page count for the project to be rendered using given Timescale. More...
 
int32_t GetPageCount (Visualization::PresentationFormat format)
 Returns page count for the project to be rendered using default Timescale(Days) and given PresentationFormat More...
 
int32_t GetPageCount (Visualization::PresentationFormat format, Visualization::Timescale scale)
 Returns page count for the project to be rendered using given Timescale and PresentationFormat. More...
 
int32_t GetPageCount (Visualization::PageSize pageSize, Visualization::Timescale scale, System::DateTime startDate, System::DateTime endDate)
 Returns page count for the project to be rendered using given Timescale, PresentationFormat and date range. More...
 
int32_t GetPageCount (Visualization::PageSize pageSize, Visualization::Timescale scale)
 Returns page count for the project to be rendered using given Timescale and PageSize. More...
 
void CopyTo (const System::SharedPtr< Project > &another)
 Copies project's main data and properties to another project. More...
 
void CopyTo (const System::SharedPtr< Project > &another, const System::SharedPtr< CopyToOptions > &options)
 Copies project's main data and properties to another project. More...
 
void SetBaseline (BaselineType baselineType)
 Saves baseline fields to the specified baseline for the entire project. More...
 
void SetBaseline (BaselineType baselineType, const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Task >>> &taskCollection)
 Saves baseline fields to the specified baseline for the selected tasks. More...
 
void UpdateProjectWorkAsComplete (System::DateTime completeThrough, bool setZeroOrHundredPercentCompleteOnly)
 Updates all work as complete through a specified date for the entire project. More...
 
void UpdateProjectWorkAsComplete (System::DateTime completeThrough, bool setZeroOrHundredPercentCompleteOnly, const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Task >>> &taskCollection)
 Updates all work as complete through a specified date for the specified list of tasks. More...
 
void RescheduleUncompletedWorkToStartAfter (System::DateTime after)
 Reschedules uncompleted project work to start after a specified date. More...
 
void RescheduleUncompletedWorkToStartAfter (System::DateTime after, const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Task >>> &taskCollection)
 Reschedules uncompleted work for a specified list of tasks to start after a specified date. More...
 
void RenumberWBSCode ()
 Renumber WBS code of all tasks. More...
 
void RenumberWBSCode (const System::SharedPtr< System::Collections::Generic::List< int32_t >> &taskIds)
 Renumber WBS code of passed tasks. More...
 
Duration GetDuration (double val)
 Gets Duration object with the specified number of units and default duration format which is defined in project's settings Prj::DurationFormat. More...
 
Duration GetDuration (double val, TimeUnitType timeUnit)
 Gets Duration object with the specified number of TimeUnitType units. More...
 
Duration GetDuration (System::TimeSpan timeSpan, TimeUnitType timeUnit)
 Gets Duration object with the specified TimeSpan value and specified TimeUnitType value. More...
 
Duration GetWork (double val)
 Gets Duration object with the specified double value and default work format. More...
 

Static Public Member Functions

static System::SharedPtr
< ProjectFileInfo
GetProjectFileInfo (const System::String &filename)
 Read project file info from the file. More...
 
static System::SharedPtr
< ProjectFileInfo
GetProjectFileInfo (const System::SharedPtr< System::IO::Stream > &stream)
 Gets project file info from the stream. More...
 

Detailed Description

Represents a project.

The Project is a central class in the Aspose.Tasks library.

One can use Project to read one of supported project management formats: MPP, MPT, MPX, XML.

To load an existing document in any of the supported formats, pass a file name or a stream into one of the Project constructors. To create a blank project, call the parameterless constructor.

Use one of the Save method overloads to save the project in any of the Aspose::Tasks::Saving::SaveFileFormat formats: Primavera: P6 XML, PM XER; Microsoft Excel: XLSX, XML; Fixed Layout: PDF; Images: JPEG, PNG, BMP, TIFF, SVG; Text: TXT; Others: HTML.

The Project stores project-wide information such as Aspose::Tasks::Project::Views, Aspose::Tasks::Project::BuiltInProps, Aspose::Tasks::Project::CustomProps, and Aspose::Tasks::Project::ExtendedAttributes. Most of these objects are accessible via the corresponding properties of the Project class.

The Project is a root entity that contains entry points to manipulate other project entities, such as Aspose::Tasks::Task, Aspose::Tasks::Resource, Aspose::Tasks::ResourceAssignment, Aspose::Tasks::ExtendedAttribute and Aspose::Tasks::Calendar.

The Project entities can be accessed via typed collections, for example Aspose::Tasks::Task::Children, Aspose::Tasks::Project::Resources, Aspose::Tasks::Project::ResourceAssignments, etc.

Constructor & Destructor Documentation

Aspose::Tasks::Project::Project ( )

Initializes a new instance of the Project class.

Aspose::Tasks::Project::Project ( const System::String &  projectTemplate,
const System::String &  protectionPassword 
)

Initializes a new instance of the Project class from a password protected template (existent mpp or mpt file).

Parameters
projectTemplatePath to template to create project from.
protectionPasswordProtection password.

Reading password protected files currently supported for MSP 2003 file format only.

Aspose::Tasks::Project::Project ( const System::String &  projectTemplate)

Initializes a new instance of the Project class from a template (existent mpp or mpt file).

Parameters
projectTemplatePath to template to create project from.
Aspose::Tasks::Project::Project ( const System::SharedPtr< System::IO::Stream > &  stream,
const System::SharedPtr< PrimaveraReadOptions > &  options 
)

Initializes a new instance of the Project class from the Stream with the specified instance of the PrimaveraReadOptions class.

Parameters
streamStream of the Project System::IO::Streamclass
optionsthe specified instance of the PrimaveraReadOptionsclass which allows to customize reading of Primavera formats (XER or XML).
Aspose::Tasks::Project::Project ( const System::String &  projectTemplate,
ParseErrorCallback  parseErrorHandler 
)

Initializes a new instance of the Project class from a template (existent mpp or mpt file).

Parameters
projectTemplatePath to template to create project from.
parseErrorHandlerthe specified callback method to handle xml parse errors.
Aspose::Tasks::Project::Project ( const System::SharedPtr< System::IO::Stream > &  stream)

Initializes a new instance of the Project class from a stream.

Parameters
streamStream to load a template from.
Aspose::Tasks::Project::Project ( const System::SharedPtr< System::IO::StreamReader > &  reader)

Initializes a new instance of the Project class from a StreamReader instance.

Parameters
readerThe stream reader where to load a template from.
Aspose::Tasks::Project::Project ( const System::String &  projectTemplate,
const System::SharedPtr< PrimaveraReadOptions > &  options 
)

Initializes a new instance of the Project class from a template (existent MPP or MPT file) with the specified instance of the PrimaveraReadOptions class.

Parameters
projectTemplatePath to template to create project from
optionsthe specified instance of the PrimaveraReadOptions class.
Aspose::Tasks::Project::Project ( const System::SharedPtr< Connectivity::DbSettings > &  settings)

Initializes a new instance of the Project class to read data from a database which is specified by the instance of the DbSettings class.

Parameters
settingsthe specified instance of the DbSettings class.
Aspose::Tasks::Project::Project ( const System::SharedPtr< System::IO::Stream > &  stream,
ParseErrorCallback  parseErrorHandler 
)

Initializes a new instance of the Project class from a template(existent mpp or mpt file).

Parameters
streamStream to load a template from.
parseErrorHandlerthe specified callback method to handle xml parse errors.
Aspose::Tasks::Project::Project ( const System::SharedPtr< System::IO::Stream > &  stream,
const System::String &  protectionPassword 
)

Initializes a new instance of the Project class from a template(existent mpp or mpt file).

Parameters
streamStream to load a template from.
protectionPasswordProtection password.

Reading password protected files currently supported for MSP 2003 file format only.

Aspose::Tasks::Project::Project ( const System::String &  projectTemplate,
const System::SharedPtr< LoadOptions > &  options 
)

Initializes a new instance of the Project class from a template (existent mpp or mpt file) with the specified instance of the LoadOptions class.

Parameters
projectTemplatePath to template to create project from
optionsthe specified instance of the LoadOptions class.
Aspose::Tasks::Project::Project ( const System::SharedPtr< System::IO::Stream > &  stream,
const System::SharedPtr< LoadOptions > &  options 
)

Initializes a new instance of the Project class from the Stream with the specified instance of the LoadOptions class.

Parameters
streamStream of the Project System::IO::Streamclass
optionsthe specified instance of the LoadOptionsclass

Member Function Documentation

void Aspose::Tasks::Project::CopyTo ( const System::SharedPtr< Project > &  another)

Copies project's main data and properties to another project.

Parameters
anotherAnother project to copy data to.
void Aspose::Tasks::Project::CopyTo ( const System::SharedPtr< Project > &  another,
const System::SharedPtr< CopyToOptions > &  options 
)

Copies project's main data and properties to another project.

Parameters
anotherAnother project to copy data to.
optionsCopy options to control copy process.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Task> > > Aspose::Tasks::Project::EnumerateAllChildTasks ( )

Recursively enumerates all project's tasks including root task.

Returns
IEnumerable which can be used to iterate over all project's tasks.

Provides a more lightweight way to iterate over tasks compared to SelectAllChildTasks method as it does not allocate memory for all tasks.

template<typename T >
T Aspose::Tasks::Project::Get ( const Key< T, PrjKey > &  key) const
inline

Returns the value to which the property is mapped in this container.

Parameters
keythe specified property key. Prj for getting the property key.
Template Parameters
Tthe type of the mapped value.
Returns
the value to which the property is mapped in this container.
NullableBool Aspose::Tasks::Project::get_ActualsInSync ( )

Gets a value indicating whether ActualsInSync is set or not.

NullableBool Aspose::Tasks::Project::get_AdminProject ( )

Gets a value indicating whether AdminProject is set or not.

NullableBool Aspose::Tasks::Project::get_AreEditableActualCosts ( )

Gets a value indicating whether AreEditableActualCosts is set or not.

System::String Aspose::Tasks::Project::get_Author ( )

Gets a value of Author.

NullableBool Aspose::Tasks::Project::get_AutoAddNewResourcesAndTasks ( )

Gets a value indicating whether AutoAddNewResourcesAndTasks is set or not.

bool Aspose::Tasks::Project::get_AutoCalculateAssignmentCosts ( )

Gets whether assignment cost and remaining cost should be auto calculated using assignment's work and resource rates.

NullableBool Aspose::Tasks::Project::get_Autolink ( )

Gets a value indicating whether Autolink is set or not.

BaselineType Aspose::Tasks::Project::get_BaselineForEarnedValue ( )

Gets a value of BaselineForEarnedValue.

const System::SharedPtr<Properties::BuiltInProjectPropertyCollection>& Aspose::Tasks::Project::get_BuiltInProps ( ) const

Gets project's built-in properties collection.

Aspose::Tasks::CalculationMode Aspose::Tasks::Project::get_CalculationMode ( ) const

Gets calculation mode of a project. Can be one of the values of CalculationMode enumeration.

System::SharedPtr<Aspose::Tasks::Calendar> Aspose::Tasks::Project::get_Calendar ( )

Gets a value of Calendar.

const System::SharedPtr<CalendarCollection>& Aspose::Tasks::Project::get_Calendars ( ) const

Gets CalendarCollection object of this Project instance.

System::String Aspose::Tasks::Project::get_Category ( )

Gets a value of Category.

System::String Aspose::Tasks::Project::get_Comments ( )

Gets a value of Comments.

System::String Aspose::Tasks::Project::get_Company ( )

Gets a value of Company.

System::DateTime Aspose::Tasks::Project::get_CreationDate ( )

Gets a value of CreationDate.

System::SharedPtr<TaskCollection> Aspose::Tasks::Project::get_CriticalPath ( )

Gets a collection which contains a list of Critical tasks which comprise Critical Path of this project.

This is an O(n) operation, where n is the number of tasks in the project.

Returns
a collection which represents a list of all critical tasks.
int32_t Aspose::Tasks::Project::get_CriticalSlackLimit ( )

Gets a value of CriticalSlackLimit.

System::String Aspose::Tasks::Project::get_CurrencyCode ( )

Gets a value of CurrencyCode.

int32_t Aspose::Tasks::Project::get_CurrencyDigits ( )

Gets a value of CurrencyDigits.

System::String Aspose::Tasks::Project::get_CurrencySymbol ( )

Gets a value of CurrencySymbol.

CurrencySymbolPositionType Aspose::Tasks::Project::get_CurrencySymbolPosition ( )

Gets a value of CurrencySymbolPosition.

System::DateTime Aspose::Tasks::Project::get_CurrentDate ( )

Gets a value of CurrentDate.

System::String Aspose::Tasks::Project::get_CustomDateFormat ( )

Gets a value of CustomDateFormat.

const System::SharedPtr<Properties::CustomProjectPropertyCollection>& Aspose::Tasks::Project::get_CustomProps ( ) const

Gets project's custom properties collection.

Aspose::Tasks::DateFormat Aspose::Tasks::Project::get_DateFormat ( )

Gets a value of DateFormat.

int32_t Aspose::Tasks::Project::get_DaysPerMonth ( )

Gets a value of DaysPerMonth.

System::DateTime Aspose::Tasks::Project::get_DefaultFinishTime ( )

Gets a value of DefaultFinishTime.

CostAccrualType Aspose::Tasks::Project::get_DefaultFixedCostAccrual ( )

Gets a value of DefaultFixedCostAccrual.

double Aspose::Tasks::Project::get_DefaultOvertimeRate ( )

Gets a value of DefaultOvertimeRate.

double Aspose::Tasks::Project::get_DefaultStandardRate ( )

Gets a value of DefaultStandardRate.

System::DateTime Aspose::Tasks::Project::get_DefaultStartTime ( )

Gets a value of DefaultStartTime.

EarnedValueMethodType Aspose::Tasks::Project::get_DefaultTaskEVMethod ( )

Gets a value of DefaultTaskEVMethod.

TaskType Aspose::Tasks::Project::get_DefaultTaskType ( )

Gets a value of DefaultTaskType.

System::SharedPtr<View> Aspose::Tasks::Project::get_DefaultView ( )

Gets default view of the project.

const System::SharedPtr<WeekDayCollection>& Aspose::Tasks::Project::get_DefaultWeekWorkingDays ( ) const

Gets the instance of WeekDayCollection class which represents a collection of project default week working days and working times.

The data contains only in mpp files (not in xml).

Returns
The instance of WeekDayCollection class which contains a list of WeekDay objects.
System::SharedPtr<ProjectDisplayOptions> Aspose::Tasks::Project::get_DisplayOptions ( ) const

Gets an instance of the ProjectDisplayOptions class.

TimeUnitType Aspose::Tasks::Project::get_DurationFormat ( )

Gets a value of DurationFormat.

EarnedValueMethodType Aspose::Tasks::Project::get_EarnedValueMethod ( )

Gets a value of EarnedValueMethod.

const System::SharedPtr<ExtendedAttributeDefinitionCollection>& Aspose::Tasks::Project::get_ExtendedAttributes ( ) const

Gets ExtendedAttributeDefinitionCollection object. The collection of extended attribute (custom fields) definitions associated with a project.

System::DateTime Aspose::Tasks::Project::get_ExtendedCreationDate ( )

Gets a value of ExtendedCreationDate.

System::DateTime Aspose::Tasks::Project::get_FinishDate ( )

Gets a value of FinishDate.

NullableBool Aspose::Tasks::Project::get_FiscalYearStart ( )

Gets a value indicating whether FiscalYearStart is set or not.

Month Aspose::Tasks::Project::get_FyStartDate ( )

Gets a value of FyStartDate.

System::Guid Aspose::Tasks::Project::get_Guid ( )

Gets a value of Guid.

NullableBool Aspose::Tasks::Project::get_HonorConstraints ( )

Gets a value indicating whether HonorConstraints is set or not.

System::String Aspose::Tasks::Project::get_HyperlinkBase ( )

Gets a value of HyperlinkBase.

NullableBool Aspose::Tasks::Project::get_InsertedProjectsLikeSummary ( )

Gets a value indicating whether InsertedProjectsLikeSummary is set or not.

NullableBool Aspose::Tasks::Project::get_KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled ( )

Gets a value indicating whether KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled is set or not.

System::String Aspose::Tasks::Project::get_Keywords ( )

Gets a value of Keywords.

System::String Aspose::Tasks::Project::get_LastAuthor ( )

Gets a value of LastAuthor.

System::DateTime Aspose::Tasks::Project::get_LastPrinted ( )

Gets a value of LastPrinted.

System::DateTime Aspose::Tasks::Project::get_LastSaved ( )

Gets a value of LastSaved.

System::String Aspose::Tasks::Project::get_Manager ( )

Gets a value of Manager.

NullableBool Aspose::Tasks::Project::get_MicrosoftProjectServerURL ( )

Gets a value indicating whether MicrosoftProjectServerURL is set or not.

int32_t Aspose::Tasks::Project::get_MinutesPerDay ( )

Gets a value of MinutesPerDay.

int32_t Aspose::Tasks::Project::get_MinutesPerWeek ( )

Gets a value of MinutesPerWeek.

NullableBool Aspose::Tasks::Project::get_MoveCompletedEndsBack ( )

Gets a value indicating whether MoveCompletedEndsBack is set or not.

NullableBool Aspose::Tasks::Project::get_MoveCompletedEndsForward ( )

Gets a value indicating whether MoveCompletedEndsForward is set or not.

NullableBool Aspose::Tasks::Project::get_MoveRemainingStartsBack ( )

Gets a value indicating whether MoveRemainingStartsBack is set or not.

NullableBool Aspose::Tasks::Project::get_MoveRemainingStartsForward ( )

Gets a value indicating whether MoveRemainingStartsForward is set or not.

NullableBool Aspose::Tasks::Project::get_MultipleCriticalPaths ( )

Gets a value indicating whether MultipleCriticalPaths is set or not.

System::String Aspose::Tasks::Project::get_Name ( )

Gets a value of Name.

NullableBool Aspose::Tasks::Project::get_NewTasksAreManual ( )

Gets a value indicating whether NewTasksAreManual is set or not.

NullableBool Aspose::Tasks::Project::get_NewTasksEffortDriven ( )

Gets a value indicating whether NewTasksEffortDriven is set or not.

NullableBool Aspose::Tasks::Project::get_NewTasksEstimated ( )

Gets a value indicating whether NewTasksEstimated is set or not.

TaskStartDateType Aspose::Tasks::Project::get_NewTaskStartDate ( )

Gets a value of NewTaskStartDate.

System::SharedPtr<OleObjectCollection> Aspose::Tasks::Project::get_OleObjects ( ) const

Gets a collection containing the instances of the OleObject class which are linked or embedded to this project file.

Available for mpp file format only. This collection is read-only except for 'Clear' operation.

const System::SharedPtr<OutlineCodeDefinitionCollection>& Aspose::Tasks::Project::get_OutlineCodes ( ) const

Gets OutlineCodeDefinitionCollection object. The collection of outline code definitions associated with a project.

const System::SharedPtr<PrimaveraProjectProperties>& Aspose::Tasks::Project::get_PrimaveraProperties ( ) const

Gets an object containing Primavera-specific properties for a project read from Primavera file.

NullableBool Aspose::Tasks::Project::get_ProjectExternallyEdited ( )

Gets a value indicating whether ProjectExternallyEdited is set or not.

NullableBool Aspose::Tasks::Project::get_RemoveFileProperties ( )

Gets a value indicating whether RemoveFileProperties is set or not.

const System::SharedPtr<ResourceAssignmentCollection>& Aspose::Tasks::Project::get_ResourceAssignments ( ) const
System::SharedPtr<FilterCollection> Aspose::Tasks::Project::get_ResourceFilters ( )

Gets all the resource-based filter definitions. ResourceFilters is a collection of Filter objects.

System::SharedPtr<GroupCollection> Aspose::Tasks::Project::get_ResourceGroups ( )

Gets all of the resource-based group definitions. ResourceGroups is a collection of Group objects.

const System::SharedPtr<ResourceCollection>& Aspose::Tasks::Project::get_Resources ( ) const

Gets ResourceCollection object.

int32_t Aspose::Tasks::Project::get_Revision ( )

Gets a value of Revision.

const System::SharedPtr<Task>& Aspose::Tasks::Project::get_RootTask ( ) const

Gets the root of the tree of tasks.

int32_t Aspose::Tasks::Project::get_SaveVersion ( )

Gets a value of SaveVersion.

NullableBool Aspose::Tasks::Project::get_ScheduleFromStart ( )

Gets a value indicating whether ScheduleFromStart is set or not.

bool Aspose::Tasks::Project::get_ShowProjectSummaryTask ( )

Gets a value indicating whether ShowProjectSummaryTask is set or not.

NullableBool Aspose::Tasks::Project::get_SplitsInProgressTasks ( )

Gets a value indicating whether SplitsInProgressTasks is set or not.

NullableBool Aspose::Tasks::Project::get_SpreadActualCost ( )

Gets a value indicating whether SpreadActualCost is set or not.

NullableBool Aspose::Tasks::Project::get_SpreadPercentComplete ( )

Gets a value indicating whether SpreadPercentComplete is set or not.

System::DateTime Aspose::Tasks::Project::get_StartDate ( )

Gets a value of StartDate.

System::DateTime Aspose::Tasks::Project::get_StatusDate ( )

Gets a value of StatusDate.

System::String Aspose::Tasks::Project::get_Subject ( )

Gets a value of Subject.

System::SharedPtr<TableCollection> Aspose::Tasks::Project::get_Tables ( )

Gets a list of Table objects.

System::SharedPtr<FilterCollection> Aspose::Tasks::Project::get_TaskFilters ( )

Gets all the task-based filter definitions. TaskFilters is a collection of Filter objects.

System::SharedPtr<GroupCollection> Aspose::Tasks::Project::get_TaskGroups ( )

Gets all the task-based group definitions. TaskGroups is a collection of Group objects.

const System::SharedPtr<TaskLinkCollection>& Aspose::Tasks::Project::get_TaskLinks ( ) const

Gets TaskLinkCollection object.

NullableBool Aspose::Tasks::Project::get_TaskUpdatesResource ( )

Gets a value indicating whether TaskUpdatesResource is set or not.

System::String Aspose::Tasks::Project::get_Template ( )

Gets a value of Template.

System::DateTime Aspose::Tasks::Project::get_TimescaleFinish ( )

Gets a value of TimescaleFinish.

System::DateTime Aspose::Tasks::Project::get_TimescaleStart ( )

Gets a value of TimescaleStart.

System::String Aspose::Tasks::Project::get_Title ( )

Gets a value of Title.

System::String Aspose::Tasks::Project::get_Uid ( )

Gets a value of Uid.

NullableBool Aspose::Tasks::Project::get_UpdateManuallyScheduledTasksWhenEditingLinks ( )

Gets a value indicating whether UpdateManuallyScheduledTasksWhenEditingLinks is set or not.

const System::SharedPtr<Aspose::Tasks::VbaProject>& Aspose::Tasks::Project::get_VbaProject ( ) const

Gets an instance of VbaProject class.

System::SharedPtr<ViewCollection> Aspose::Tasks::Project::get_Views ( )

Gets a list of View objects.

const System::SharedPtr<Aspose::Tasks::WBSCodeDefinition>& Aspose::Tasks::Project::get_WBSCodeDefinition ( ) const

Gets WBS Code Definition for the project.

DayType Aspose::Tasks::Project::get_WeekStartDay ( )

Gets a value of WeekStartDay.

TimeUnitType Aspose::Tasks::Project::get_WorkFormat ( )

Gets a value of WorkFormat.

System::DateTime Aspose::Tasks::Project::GetBaselineSaveTime ( BaselineType  baselineNumber)

Returns the baseline save time.

Parameters
baselineNumberThe baseline's number Aspose::Tasks::BaselineType.
Returns
The baseline's last save date and time.

Returns DateTime.MinValue if the baseline was not saved.

Duration Aspose::Tasks::Project::GetDuration ( double  val)

Gets Duration object with the specified number of units and default duration format which is defined in project's settings Prj::DurationFormat.

Parameters
valspecified number of units.
Returns
Duration object.

This method should be used carefully because it returns different durations depending on Project.DurationFormat setting. For example, GetWork(1.0) will return 1 hour when Project.DurationFormat is TimeUnitType.Hour or 1 day if Project.DurationFormat is TimeUnitType.Day.

Duration Aspose::Tasks::Project::GetDuration ( double  val,
TimeUnitType  timeUnit 
)

Gets Duration object with the specified number of TimeUnitType units.

Parameters
valspecified number of units.
timeUnitspecified TimeUnitType value.
Returns
Duration object.
Duration Aspose::Tasks::Project::GetDuration ( System::TimeSpan  timeSpan,
TimeUnitType  timeUnit 
)

Gets Duration object with the specified TimeSpan value and specified TimeUnitType value.

Parameters
timeSpanspecified TimeSpan value.
timeUnitspecified TimeUnitType value.
Returns
Duration object.
int32_t Aspose::Tasks::Project::GetPageCount ( const System::SharedPtr< Saving::SaveOptions > &  saveOptions)

Returns page count for the project to be rendered using given SaveOptions.

Parameters
saveOptionsThe save options to get page count for.
Returns
a page count to be rendered.

In this example instance of HtmlSaveOptions and the number of pages in resulting HTML is written to the console. [C#] Project project = new Project("test.mpp"); HtmlSaveOptions saveOptions = new HtmlSaveOptions { IncludeProjectNameInPageHeader = false, IncludeProjectNameInTitle = false, PageSize = PageSize.A4, Timescale = Timescale.Days, StartDate = project.Get(Prj.StartDate).Date, EndDate = project.Get(Prj.FinishDate).Date };

Console.WriteLine(project.GetPageCount(saveOptions));

int32_t Aspose::Tasks::Project::GetPageCount ( )

Returns page count for the project to be rendered using default Timescale(Days).

Returns
Page count to be rendered.
int32_t Aspose::Tasks::Project::GetPageCount ( Visualization::Timescale  scale)

Returns page count for the project to be rendered using given Timescale.

Parameters
scaleThe scale to get page count for.
Returns
Page count to be rendered.
int32_t Aspose::Tasks::Project::GetPageCount ( Visualization::PresentationFormat  format)

Returns page count for the project to be rendered using default Timescale(Days) and given PresentationFormat

Parameters
formatThe format to get page count for.
Returns
Page count to be rendered.
int32_t Aspose::Tasks::Project::GetPageCount ( Visualization::PresentationFormat  format,
Visualization::Timescale  scale 
)

Returns page count for the project to be rendered using given Timescale and PresentationFormat.

Parameters
formatThe format to get page count for.
scaleThe scale to get page count for.
Returns
a page count to be rendered.
int32_t Aspose::Tasks::Project::GetPageCount ( Visualization::PageSize  pageSize,
Visualization::Timescale  scale,
System::DateTime  startDate,
System::DateTime  endDate 
)

Returns page count for the project to be rendered using given Timescale, PresentationFormat and date range.

Parameters
pageSizeThe size to get page count for.
scaleThe scale to get page count for.
startDateThe start date to get page count for.
endDateThe end date to get page count for.
Returns
Page count to be rendered.
int32_t Aspose::Tasks::Project::GetPageCount ( Visualization::PageSize  pageSize,
Visualization::Timescale  scale 
)

Returns page count for the project to be rendered using given Timescale and PageSize.

Parameters
pageSizeThe size to get page count for.
scaleThe scale to get page count for.
Returns
Page count to be rendered.
System::SharedPtr<TaskLinkCollection> Aspose::Tasks::Project::GetPredecessors ( const System::SharedPtr< Task > &  task)

Returns a collection of task links which are predecessors of the specified task.

Parameters
taskThe task to get predecessors for.
Returns
List of predecessors TaskLink.
static System::SharedPtr<ProjectFileInfo> Aspose::Tasks::Project::GetProjectFileInfo ( const System::String &  filename)
static

Read project file info from the file.

Parameters
filenameThe project filename.
Returns
The project file info Aspose::Tasks::ProjectFileInfo.
static System::SharedPtr<ProjectFileInfo> Aspose::Tasks::Project::GetProjectFileInfo ( const System::SharedPtr< System::IO::Stream > &  stream)
static

Gets project file info from the stream.

Parameters
streamThe data stream.
Returns
The project file info Aspose::Tasks::ProjectFileInfo.
Duration Aspose::Tasks::Project::GetWork ( double  val)

Gets Duration object with the specified double value and default work format.

Parameters
valspecified double value.
Returns
Duration object.

This method should be used carefully because it returns different durations depending on Project.WorkFormat setting. For example, GetWork(1.0) will return 1 hour when Project.WorkFormat is TimeUnitType.Hour or 1 day if Project.WorkFormat is TimeUnitType.Day.

void Aspose::Tasks::Project::Recalculate ( )

Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields.

void Aspose::Tasks::Project::Recalculate ( bool  validate)

Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields with optional validation.

Parameters
validateIf true the validation of recalculation will be performed. What data is validated: At the moment only basic validation of task and task link date ranges is implemented. Task's date ranges (e.g. ActualStart - ActualFinish, EarlyStart - EarlyFinish, etc.) as well as Task Links dates will be checked against the date criteria that start date is less or equal than finish date. If any of conditions described above is failed then RecalculationValidationException will be thrown.
void Aspose::Tasks::Project::RecalculateResourceFields ( )

Recalculates Id, Start and Finish of resources.

void Aspose::Tasks::Project::RecalculateResourceStartFinish ( )

Recalculates Start and Finish of resources.

void Aspose::Tasks::Project::RemoveInvalidResourceAssignments ( )

Eliminates invalid resource assignments from the project resource assignments list.

MS Project creates an empty resource assignment for each task. Call the method to remove them.

void Aspose::Tasks::Project::RenumberWBSCode ( )

Renumber WBS code of all tasks.

void Aspose::Tasks::Project::RenumberWBSCode ( const System::SharedPtr< System::Collections::Generic::List< int32_t >> &  taskIds)

Renumber WBS code of passed tasks.

Parameters
taskIdsTask identifiers to renumber WBS codes.
void Aspose::Tasks::Project::RescheduleUncompletedWorkToStartAfter ( System::DateTime  after)

Reschedules uncompleted project work to start after a specified date.

Ensure that Project.CanSplitsInProgressTasks flag is set to true before using this method.

Parameters
afterThe date to reschedule uncompleted work after.
void Aspose::Tasks::Project::RescheduleUncompletedWorkToStartAfter ( System::DateTime  after,
const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Task >>> &  taskCollection 
)

Reschedules uncompleted work for a specified list of tasks to start after a specified date.

Ensure that Project.CanSplitsInProgressTasks flag is set to true before using this method.

Parameters
afterThe date to reschedule uncompleted work after.
taskCollectionList<Task> of tasks to reschedule uncompleted work for.
void Aspose::Tasks::Project::Save ( const System::String &  filename,
const System::SharedPtr< Saving::SimpleSaveOptions > &  options 
)

Saves the document to a file using the specified save options.

Parameters
filenameThe file name.
optionsThe save options.
void Aspose::Tasks::Project::Save ( const System::String &  filename,
Saving::SaveFileFormat  format 
)

Saves the project data to the file.

Parameters
filenameThe file name.
formatThe save file format.
void Aspose::Tasks::Project::Save ( const System::String &  filename)

Saves the project data to the file in mpp format.

Parameters
filenameThe file name.
void Aspose::Tasks::Project::Save ( const System::SharedPtr< System::IO::Stream > &  stream,
const System::SharedPtr< Saving::SimpleSaveOptions > &  options 
)

Saves the project to a stream using the specified save options.

Parameters
streamThe stream.
optionsThe save options.
void Aspose::Tasks::Project::Save ( const System::SharedPtr< System::IO::Stream > &  stream,
Saving::SaveFileFormat  format 
)

Saves the project data to the stream.

Parameters
streamThe stream.
formatthe specified save file format.SaveFileFormat
void Aspose::Tasks::Project::SaveAsTemplate ( const System::String &  fileName,
const System::SharedPtr< Saving::SaveTemplateOptions > &  options 
)

Saves the project as a template.

Parameters
fileNameThe file name.
optionsthe specified save options SaveTemplateOptions.
void Aspose::Tasks::Project::SaveAsTemplate ( const System::String &  fileName)

Saves the project as a template to the specified file path.

Parameters
fileNamethe specified file name.
void Aspose::Tasks::Project::SaveAsTemplate ( const System::SharedPtr< System::IO::Stream > &  stream)

Saves the project as a template to a specified stream.

Parameters
streamthe specified stream to save the project to.
void Aspose::Tasks::Project::SaveAsTemplate ( const System::SharedPtr< System::IO::Stream > &  stream,
const System::SharedPtr< Saving::SaveTemplateOptions > &  options 
)

Saves the project as a template to a specified stream.

Parameters
streamStream to save the project template to.
optionsthe specified save options SaveTemplateOptions.
void Aspose::Tasks::Project::SaveReport ( const System::SharedPtr< System::IO::Stream > &  stream)

Saves the project overview report to the stream.

Parameters
streamThe stream to save project report to.
void Aspose::Tasks::Project::SaveReport ( const System::String &  fileName)

Saves the project overview report to PDF file.

Parameters
fileNameThe file name.
void Aspose::Tasks::Project::SaveReport ( const System::SharedPtr< System::IO::Stream > &  stream,
Visualization::ReportType  reportType 
)

Saves the project report of the specified type to the specified stream.

Parameters
streamthe specified stream to save project report to.
reportTypethe specified report type.ReportType
void Aspose::Tasks::Project::SaveReport ( const System::String &  fileName,
Visualization::ReportType  reportType 
)

Saves the project report of the specified type in PDF format to the specified file path.

Parameters
fileNamethe specified file name.
reportTypethe specified report type.ReportType
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Task> > > Aspose::Tasks::Project::SelectAllChildTasks ( )

Recursively collects all child tasks of the root task.

Returns
The collection of tasks.
template<typename T >
void Aspose::Tasks::Project::Set ( const Key< T, PrjKey > &  key,
const T &  val 
)
inline

Maps the specified property to the specified value in this container.

Parameters
keythe specified property key. Prj for getting the property key.
valthe value.
Template Parameters
Tthe type of the mapped value.
void Aspose::Tasks::Project::Set ( const Key< System::DateTime, PrjKey > &  key,
const System::DateTime &  val 
)

Maps the specified property to the specified value in this container.

Parameters
keythe specified property key. Prj for getting the property key.
valthe value.
void Aspose::Tasks::Project::set_ActualsInSync ( NullableBool  value)

Sets a value indicating whether ActualsInSync is set or not.

void Aspose::Tasks::Project::set_AdminProject ( NullableBool  value)

Sets a value indicating whether AdminProject is set or not.

void Aspose::Tasks::Project::set_AreEditableActualCosts ( NullableBool  value)

Sets a value indicating whether AreEditableActualCosts is set or not.

void Aspose::Tasks::Project::set_Author ( const System::String &  value)

Sets a value of Author.

void Aspose::Tasks::Project::set_AutoAddNewResourcesAndTasks ( NullableBool  value)

Sets a value indicating whether AutoAddNewResourcesAndTasks is set or not.

void Aspose::Tasks::Project::set_AutoCalculateAssignmentCosts ( bool  value)

Sets whether assignment cost and remaining cost should be auto calculated using assignment's work and resource rates.

void Aspose::Tasks::Project::set_Autolink ( NullableBool  value)

Sets a value indicating whether Autolink is set or not.

void Aspose::Tasks::Project::set_BaselineForEarnedValue ( BaselineType  value)

Sets a value of BaselineForEarnedValue.

void Aspose::Tasks::Project::set_CalculationMode ( Aspose::Tasks::CalculationMode  value)

Sets calculation mode of a project. Can be one of the values of CalculationMode enumeration.

void Aspose::Tasks::Project::set_Calendar ( const System::SharedPtr< Aspose::Tasks::Calendar > &  value)

Sets a value of Calendar.

void Aspose::Tasks::Project::set_Category ( const System::String &  value)

Sets a value of Category.

void Aspose::Tasks::Project::set_Comments ( const System::String &  value)

Sets a value of Comments.

void Aspose::Tasks::Project::set_Company ( const System::String &  value)

Sets a value of Company.

void Aspose::Tasks::Project::set_CreationDate ( System::DateTime  value)

Sets a value of CreationDate.

void Aspose::Tasks::Project::set_CriticalSlackLimit ( int32_t  value)

Sets a value of CriticalSlackLimit.

void Aspose::Tasks::Project::set_CurrencyCode ( const System::String &  value)

Sets a value of CurrencyCode.

void Aspose::Tasks::Project::set_CurrencyDigits ( int32_t  value)

Sets a value of CurrencyDigits.

void Aspose::Tasks::Project::set_CurrencySymbol ( const System::String &  value)

Sets a value of CurrencySymbol.

void Aspose::Tasks::Project::set_CurrencySymbolPosition ( CurrencySymbolPositionType  value)

Sets a value of CurrencySymbolPosition.

void Aspose::Tasks::Project::set_CurrentDate ( System::DateTime  value)

Sets a value of CurrentDate.

void Aspose::Tasks::Project::set_CustomDateFormat ( const System::String &  value)

Sets a value of CustomDateFormat.

void Aspose::Tasks::Project::set_DateFormat ( Aspose::Tasks::DateFormat  value)

Sets a value of DateFormat.

void Aspose::Tasks::Project::set_DaysPerMonth ( int32_t  value)

Sets a value of DaysPerMonth.

void Aspose::Tasks::Project::set_DefaultFinishTime ( System::DateTime  value)

Sets a value of DefaultFinishTime.

void Aspose::Tasks::Project::set_DefaultFixedCostAccrual ( CostAccrualType  value)

Sets a value of DefaultFixedCostAccrual.

void Aspose::Tasks::Project::set_DefaultOvertimeRate ( double  value)

Sets a value of DefaultOvertimeRate.

void Aspose::Tasks::Project::set_DefaultStandardRate ( double  value)

Sets a value of DefaultStandardRate.

void Aspose::Tasks::Project::set_DefaultStartTime ( System::DateTime  value)

Sets a value of DefaultStartTime.

void Aspose::Tasks::Project::set_DefaultTaskEVMethod ( EarnedValueMethodType  value)

Sets a value of DefaultTaskEVMethod.

void Aspose::Tasks::Project::set_DefaultTaskType ( TaskType  value)

Sets a value of DefaultTaskType.

void Aspose::Tasks::Project::set_DefaultView ( const System::SharedPtr< View > &  value)

Sets default view of the project.

void Aspose::Tasks::Project::set_DurationFormat ( TimeUnitType  value)

Sets a value of DurationFormat.

void Aspose::Tasks::Project::set_EarnedValueMethod ( EarnedValueMethodType  value)

Sets a value of EarnedValueMethod.

void Aspose::Tasks::Project::set_ExtendedCreationDate ( System::DateTime  value)

Sets a value of ExtendedCreationDate.

void Aspose::Tasks::Project::set_FinishDate ( System::DateTime  value)

Sets a value of FinishDate.

void Aspose::Tasks::Project::set_FiscalYearStart ( NullableBool  value)

Sets a value indicating whether FiscalYearStart is set or not.

void Aspose::Tasks::Project::set_FyStartDate ( Month  value)

Sets a value of FyStartDate.

void Aspose::Tasks::Project::set_Guid ( System::Guid  value)

Sets a value of Guid.

void Aspose::Tasks::Project::set_HonorConstraints ( NullableBool  value)

Sets a value indicating whether HonorConstraints is set or not.

void Aspose::Tasks::Project::set_HyperlinkBase ( const System::String &  value)

Sets a value of HyperlinkBase.

void Aspose::Tasks::Project::set_InsertedProjectsLikeSummary ( NullableBool  value)

Sets a value indicating whether InsertedProjectsLikeSummary is set or not.

void Aspose::Tasks::Project::set_KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled ( NullableBool  value)

Sets a value indicating whether KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled is set or not.

void Aspose::Tasks::Project::set_Keywords ( const System::String &  value)

Sets a value of Keywords.

void Aspose::Tasks::Project::set_LastAuthor ( const System::String &  value)

Sets a value of LastAuthor.

void Aspose::Tasks::Project::set_LastPrinted ( System::DateTime  value)

Sets a value of LastPrinted.

void Aspose::Tasks::Project::set_LastSaved ( System::DateTime  value)

Sets a value of LastSaved.

void Aspose::Tasks::Project::set_Manager ( const System::String &  value)

Sets a value of Manager.

void Aspose::Tasks::Project::set_MicrosoftProjectServerURL ( NullableBool  value)

Sets a value indicating whether MicrosoftProjectServerURL is set or not.

void Aspose::Tasks::Project::set_MinutesPerDay ( int32_t  value)

Sets a value of MinutesPerDay.

void Aspose::Tasks::Project::set_MinutesPerWeek ( int32_t  value)

Sets a value of MinutesPerWeek.

void Aspose::Tasks::Project::set_MoveCompletedEndsBack ( NullableBool  value)

Sets a value indicating whether MoveCompletedEndsBack is set or not.

void Aspose::Tasks::Project::set_MoveCompletedEndsForward ( NullableBool  value)

Sets a value indicating whether MoveCompletedEndsForward is set or not.

void Aspose::Tasks::Project::set_MoveRemainingStartsBack ( NullableBool  value)

Sets a value indicating whether MoveRemainingStartsBack is set or not.

void Aspose::Tasks::Project::set_MoveRemainingStartsForward ( NullableBool  value)

Sets a value indicating whether MoveRemainingStartsForward is set or not.

void Aspose::Tasks::Project::set_MultipleCriticalPaths ( NullableBool  value)

Sets a value indicating whether MultipleCriticalPaths is set or not.

void Aspose::Tasks::Project::set_Name ( const System::String &  value)

Sets a value of Name.

void Aspose::Tasks::Project::set_NewTasksAreManual ( NullableBool  value)

Sets a value indicating whether NewTasksAreManual is set or not.

void Aspose::Tasks::Project::set_NewTasksEffortDriven ( NullableBool  value)

Sets a value indicating whether NewTasksEffortDriven is set or not.

void Aspose::Tasks::Project::set_NewTasksEstimated ( NullableBool  value)

Sets a value indicating whether NewTasksEstimated is set or not.

void Aspose::Tasks::Project::set_NewTaskStartDate ( TaskStartDateType  value)

Sets a value of NewTaskStartDate.

void Aspose::Tasks::Project::set_ProjectExternallyEdited ( NullableBool  value)

Sets a value indicating whether ProjectExternallyEdited is set or not.

void Aspose::Tasks::Project::set_RemoveFileProperties ( NullableBool  value)

Sets a value indicating whether RemoveFileProperties is set or not.

void Aspose::Tasks::Project::set_Revision ( int32_t  value)

Sets a value of Revision.

void Aspose::Tasks::Project::set_SaveVersion ( int32_t  value)

Sets a value of SaveVersion.

void Aspose::Tasks::Project::set_ScheduleFromStart ( NullableBool  value)

Sets a value indicating whether ScheduleFromStart is set or not.

void Aspose::Tasks::Project::set_ShowProjectSummaryTask ( bool  value)

Sets a value indicating whether ShowProjectSummaryTask is set or not.

void Aspose::Tasks::Project::set_SplitsInProgressTasks ( NullableBool  value)

Sets a value indicating whether SplitsInProgressTasks is set or not.

void Aspose::Tasks::Project::set_SpreadActualCost ( NullableBool  value)

Sets a value indicating whether SpreadActualCost is set or not.

void Aspose::Tasks::Project::set_SpreadPercentComplete ( NullableBool  value)

Sets a value indicating whether SpreadPercentComplete is set or not.

void Aspose::Tasks::Project::set_StartDate ( System::DateTime  value)

Sets a value of StartDate.

void Aspose::Tasks::Project::set_StatusDate ( System::DateTime  value)

Sets a value of StatusDate.

void Aspose::Tasks::Project::set_Subject ( const System::String &  value)

Sets a value of Subject.

void Aspose::Tasks::Project::set_TaskUpdatesResource ( NullableBool  value)

Sets a value indicating whether TaskUpdatesResource is set or not.

void Aspose::Tasks::Project::set_Template ( const System::String &  value)

Sets a value of Template.

void Aspose::Tasks::Project::set_TimescaleFinish ( System::DateTime  value)

Sets a value of TimescaleFinish.

void Aspose::Tasks::Project::set_TimescaleStart ( System::DateTime  value)

Sets a value of TimescaleStart.

void Aspose::Tasks::Project::set_Title ( const System::String &  value)

Sets a value of Title.

void Aspose::Tasks::Project::set_Uid ( const System::String &  value)

Sets a value of Uid.

void Aspose::Tasks::Project::set_UpdateManuallyScheduledTasksWhenEditingLinks ( NullableBool  value)

Sets a value indicating whether UpdateManuallyScheduledTasksWhenEditingLinks is set or not.

void Aspose::Tasks::Project::set_WBSCodeDefinition ( const System::SharedPtr< Aspose::Tasks::WBSCodeDefinition > &  value)

Sets WBS Code Definition for the project.

void Aspose::Tasks::Project::set_WeekStartDay ( DayType  value)

Sets a value of WeekStartDay.

void Aspose::Tasks::Project::set_WorkFormat ( TimeUnitType  value)

Sets a value of WorkFormat.

void Aspose::Tasks::Project::SetBaseline ( BaselineType  baselineType)

Saves baseline fields to the specified baseline for the entire project.

Parameters
baselineTypeThe baseline type to save baseline data to.
void Aspose::Tasks::Project::SetBaseline ( BaselineType  baselineType,
const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Task >>> &  taskCollection 
)

Saves baseline fields to the specified baseline for the selected tasks.

Parameters
baselineTypeThe baseline type to save baseline data to.
taskCollectionList of tasks to save baseline data for.
void Aspose::Tasks::Project::SetBaselineSaveTime ( BaselineType  baselineNumber,
System::DateTime  value 
)

Sets the baseline save time.

Parameters
baselineNumberThe baseline's number Aspose::Tasks::BaselineType.
valueThe baseline's last save date and time.

Set value to DateTime.MinValue if the baseline was not saved.

void Aspose::Tasks::Project::UpdateProjectWorkAsComplete ( System::DateTime  completeThrough,
bool  setZeroOrHundredPercentCompleteOnly 
)

Updates all work as complete through a specified date for the entire project.

Parameters
completeThroughThe date to update work as completed through.
setZeroOrHundredPercentCompleteOnlyIf set to true updates only those tasks as 100% complete whose finish date is before specified complete-through date. Otherwise, calculates a percentage complete value based on scheduled start and complete-through dates.
void Aspose::Tasks::Project::UpdateProjectWorkAsComplete ( System::DateTime  completeThrough,
bool  setZeroOrHundredPercentCompleteOnly,
const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Task >>> &  taskCollection 
)

Updates all work as complete through a specified date for the specified list of tasks.

Parameters
completeThroughThe date to update work as completed through.
setZeroOrHundredPercentCompleteOnlyIf set to true updates only those tasks as 100% complete whose finish date is before specified complete-through date. Otherwise, calculates a percentage complete value based on scheduled start and complete-through dates.
taskCollectionList<Task> of tasks to update work for.