Table of Contents

Class ChartTaskChange

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A change a person made to a task on a TwGanttChart by dragging it. The chart never changes the task itself: store the new values, or set Cancel to put the bar back.

public sealed class ChartTaskChange
Inheritance
ChartTaskChange
Inherited Members

Constructors

ChartTaskChange()

public ChartTaskChange()

Properties

Cancel

Gets or sets whether to refuse the change, so the bar stays where it was.

public bool Cancel { get; set; }

Property Value

bool

End

Gets the new end. Unchanged by a ResizeStart or progress drag.

public DateTime End { get; init; }

Property Value

DateTime

Kind

Gets which gesture made the change.

public ChartTaskChangeKind Kind { get; init; }

Property Value

ChartTaskChangeKind

Progress

Gets the new progress, from 0 to 1. Only a progress drag changes it.

public double? Progress { get; init; }

Property Value

double?

Start

Gets the new start. Unchanged by a ResizeEnd or progress drag.

public DateTime Start { get; init; }

Property Value

DateTime

Task

Gets the task as it was before the change.

public required ChartTask Task { get; init; }

Property Value

ChartTask