Class TaskLink

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

objectTaskLink

Implements

IEquatable<tasklink>

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

string

IsCrossProject

Gets or sets a value indicating whether a predecessor is part of another project.

public bool IsCrossProject { get; set; }

Property Value

bool

LagFormat

Gets or sets the format for expressing the lag format.

public TimeUnitType LagFormat { get; set; }

Property Value

TimeUnitType

LinkLag

Gets or sets the lag in tenths of a minute or percentage.

public int LinkLag { get; set; }

Property Value

int

LinkLagTimeSpan

Gets or sets lag duration, depending on LagFormat.

public TimeSpan LinkLagTimeSpan { get; set; }

Property Value

TimeSpan

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

ArgumentException

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

TaskLinkType

PredTask

Gets or sets the predecessor task.

public Task PredTask { get; set; }

Property Value

Task

SuccTask

Gets or sets the successor task.

public Task SuccTask { get; set; }

Property Value

Task

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

bool

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

bool

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

int

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

string which represents TaskLink object. </tasklink>