Class TaskLink
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a predecessor link.
[ClassInterface(ClassInterfaceType.AutoDual)]
public sealed class TaskLink : IEquatable<tasklink>
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
CrossProjectName
Gets or sets the external predecessor project.
public string CrossProjectName { get; set; }
Property Value
IsCrossProject
Gets or sets a value indicating whether a predecessor is part of another project.
public bool IsCrossProject { get; set; }
Property Value
LagFormat
Gets or sets the format for expressing the lag format.
public TimeUnitType LagFormat { get; set; }
Property Value
LinkLag
Gets or sets the lag in tenths of a minute or percentage.
public int LinkLag { get; set; }
Property Value
LinkLagTimeSpan
Gets or sets lag duration, depending on LagFormat.
public TimeSpan LinkLagTimeSpan { get; set; }
Property Value
Remarks
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.
Exceptions
When trying to set the value for TaskLinks where LagFormat is TimeUnitType.Percent.
LinkType
Gets or sets the type of a link.
public TaskLinkType LinkType { get; set; }
Property Value
PredTask
Gets or sets the predecessor task.
public Task PredTask { get; set; }
Property Value
SuccTask
Gets or sets the successor task.
public Task SuccTask { get; set; }
Property Value
Methods
Equals(TaskLink)
Returns a value indicating whether this instance is equal to a specified object.
public bool Equals(TaskLink other)
Parameters
other
TaskLink
The specified instance of the Aspose.Tasks.TaskLink class to compare with this instance.
Returns
True if the specified instance of the Aspose.Tasks.TaskLink class has the same predecessor and successor tasks as this instance; otherwise, false.
Equals(object)
Returns a value indicating whether this instance is equal to a specified object.
public override bool Equals(object obj)
Parameters
obj
object
The object to compare with this instance.
Returns
True if the specified object is a TaskLink that has the same predecessor and successor as this instance; otherwise, false.
GetHashCode()
Returns a hash code value for the instance of the Aspose.Tasks.TaskLink class.
public override int GetHashCode()
Returns
returns a hash code value for this object.
ToString()
Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change.
public override string ToString()
Returns
string which represents TaskLink object. </tasklink>