Aspose.Tasks for C++
|
Represents a predecessor link. More...
#include <TaskLink.h>
Inherits System::IEquatable< System::SharedPtr< Aspose::Tasks::TaskLink > >.
Public Member Functions | |
bool | get_IsCrossProject () const |
Gets a value indicating whether a predecessor is part of another project. More... | |
void | set_IsCrossProject (bool value) |
Sets a value indicating whether a predecessor is part of another project. More... | |
System::String | get_CrossProjectName () const |
Gets the external predecessor project. More... | |
void | set_CrossProjectName (const System::String &value) |
Sets the external predecessor project. More... | |
int32_t | get_LinkLag () const |
Gets the lag in tenths of a minute or percentage. More... | |
void | set_LinkLag (int32_t value) |
Sets the lag in tenths of a minute or percentage. More... | |
System::TimeSpan | get_LinkLagTimeSpan () |
Gets lag duration, depending on LagFormat. More... | |
void | set_LinkLagTimeSpan (System::TimeSpan value) |
Sets lag duration, depending on LagFormat. More... | |
TimeUnitType | get_LagFormat () const |
Gets the format for expressing the lag format. More... | |
void | set_LagFormat (TimeUnitType value) |
Sets the format for expressing the lag format. More... | |
const System::SharedPtr< Task > & | get_PredTask () const |
Gets the predecessor task. More... | |
void | set_PredTask (const System::SharedPtr< Task > &value) |
Sets the predecessor task. More... | |
const System::SharedPtr< Task > & | get_SuccTask () const |
Gets the successor task. More... | |
void | set_SuccTask (const System::SharedPtr< Task > &value) |
Sets the successor task. More... | |
TaskLinkType | get_LinkType () const |
Gets the type of a link. More... | |
void | set_LinkType (TaskLinkType value) |
Sets the type of a link. More... | |
int32_t | GetHashCode () const override |
Returns a hash code value for the instance of the TaskLink class. More... | |
bool | Equals (System::SharedPtr< TaskLink > other) override |
Returns a value indicating whether this instance is equal to a specified object. More... | |
System::String | ToString () const override |
Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change. More... | |
bool | Equals (System::SharedPtr< System::Object > obj) override |
Returns a value indicating whether this instance is equal to a specified object. More... | |
Represents a predecessor link.
|
override |
Returns a value indicating whether this instance is equal to a specified object.
obj | The object to compare with this instance. |
|
override |
Returns a value indicating whether this instance is equal to a specified object.
other | The specified instance of the TaskLink class to compare with this instance. |
System::String Aspose::Tasks::TaskLink::get_CrossProjectName | ( | ) | const |
Gets the external predecessor project.
bool Aspose::Tasks::TaskLink::get_IsCrossProject | ( | ) | const |
Gets a value indicating whether a predecessor is part of another project.
TimeUnitType Aspose::Tasks::TaskLink::get_LagFormat | ( | ) | const |
Gets the format for expressing the lag format.
int32_t Aspose::Tasks::TaskLink::get_LinkLag | ( | ) | const |
Gets the lag in tenths of a minute or percentage.
System::TimeSpan Aspose::Tasks::TaskLink::get_LinkLagTimeSpan | ( | ) |
Gets lag duration, depending on LagFormat.
Link lag can be a percentage value (LagFormat is TimeUnitType.Percent). In this case the duration is calculated as a percentage of PredTask's duration. Otherwise the method returns TimeSpan value representing TaskLink's lag.
ArgumentException | When trying to set the value for TaskLinks where LagFormat is TimeUnitType.Percent. |
TaskLinkType Aspose::Tasks::TaskLink::get_LinkType | ( | ) | const |
Gets the type of a link.
const System::SharedPtr<Task>& Aspose::Tasks::TaskLink::get_PredTask | ( | ) | const |
Gets the predecessor task.
const System::SharedPtr<Task>& Aspose::Tasks::TaskLink::get_SuccTask | ( | ) | const |
Gets the successor task.
|
override |
Returns a hash code value for the instance of the TaskLink class.
void Aspose::Tasks::TaskLink::set_CrossProjectName | ( | const System::String & | value | ) |
Sets the external predecessor project.
void Aspose::Tasks::TaskLink::set_IsCrossProject | ( | bool | value | ) |
Sets a value indicating whether a predecessor is part of another project.
void Aspose::Tasks::TaskLink::set_LagFormat | ( | TimeUnitType | value | ) |
Sets the format for expressing the lag format.
void Aspose::Tasks::TaskLink::set_LinkLag | ( | int32_t | value | ) |
Sets the lag in tenths of a minute or percentage.
void Aspose::Tasks::TaskLink::set_LinkLagTimeSpan | ( | System::TimeSpan | value | ) |
Sets lag duration, depending on LagFormat.
Link lag can be a percentage value (LagFormat is TimeUnitType.Percent). In this case the duration is calculated as a percentage of PredTask's duration. Otherwise the method returns TimeSpan value representing TaskLink's lag.
ArgumentException | When trying to set the value for TaskLinks where LagFormat is TimeUnitType.Percent. |
void Aspose::Tasks::TaskLink::set_LinkType | ( | TaskLinkType | value | ) |
Sets the type of a link.
void Aspose::Tasks::TaskLink::set_PredTask | ( | const System::SharedPtr< Task > & | value | ) |
Sets the predecessor task.
void Aspose::Tasks::TaskLink::set_SuccTask | ( | const System::SharedPtr< Task > & | value | ) |
Sets the successor task.