Class ChartTaskDependency
A dependency between two tasks on a TwGanttChart, drawn as an arrow.
public sealed record ChartTaskDependency : IEquatable<ChartTaskDependency>
- Inheritance
-
ChartTaskDependency
- Implements
- Inherited Members
Constructors
ChartTaskDependency(string, string, ChartDependencyType)
A dependency between two tasks on a TwGanttChart, drawn as an arrow.
public ChartTaskDependency(string FromId, string ToId, ChartDependencyType Type = ChartDependencyType.FinishToStart)
Parameters
FromIdstringThe Key of the task the other depends on.
ToIdstringThe Key of the task that depends on it.
TypeChartDependencyTypeHow the two tasks depend on each other.
Properties
FromId
The Key of the task the other depends on.
public string FromId { get; init; }
Property Value
ToId
The Key of the task that depends on it.
public string ToId { get; init; }
Property Value
Type
How the two tasks depend on each other.
public ChartDependencyType Type { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out ChartDependencyType)
public void Deconstruct(out string FromId, out string ToId, out ChartDependencyType Type)
Parameters
FromIdstringToIdstringTypeChartDependencyType
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ChartTaskDependency?)
public bool Equals(ChartTaskDependency? other)
Parameters
otherChartTaskDependency
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartTaskDependency?, ChartTaskDependency?)
public static bool operator ==(ChartTaskDependency? left, ChartTaskDependency? right)
Parameters
leftChartTaskDependencyrightChartTaskDependency
Returns
operator !=(ChartTaskDependency?, ChartTaskDependency?)
public static bool operator !=(ChartTaskDependency? left, ChartTaskDependency? right)
Parameters
leftChartTaskDependencyrightChartTaskDependency