Table of Contents

Class ChartTaskDependency

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

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

FromId string

The Key of the task the other depends on.

ToId string

The Key of the task that depends on it.

Type ChartDependencyType

How 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

string

ToId

The Key of the task that depends on it.

public string ToId { get; init; }

Property Value

string

Type

How the two tasks depend on each other.

public ChartDependencyType Type { get; init; }

Property Value

ChartDependencyType

Methods

Deconstruct(out string, out string, out ChartDependencyType)

public void Deconstruct(out string FromId, out string ToId, out ChartDependencyType Type)

Parameters

FromId string
ToId string
Type ChartDependencyType

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartTaskDependency?)

public bool Equals(ChartTaskDependency? other)

Parameters

other ChartTaskDependency

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartTaskDependency?, ChartTaskDependency?)

public static bool operator ==(ChartTaskDependency? left, ChartTaskDependency? right)

Parameters

left ChartTaskDependency
right ChartTaskDependency

Returns

bool

operator !=(ChartTaskDependency?, ChartTaskDependency?)

public static bool operator !=(ChartTaskDependency? left, ChartTaskDependency? right)

Parameters

left ChartTaskDependency
right ChartTaskDependency

Returns

bool