Skip to main content
Version: 4.2

GanttTaskChangeEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes a cancellable proposed task edit before mutation.

public class GanttTaskChangeEventArgs : CancelEventArgs

Derives from or implements CancelEventArgs.

Use Task, Start, End to access the event data.

Example:

// Event arguments are supplied by GanttView events.
gantt.TaskMoving += (sender, e) => e.Cancel = e.Start < DateTime.Today;

Constructors​

Instance member GanttTaskChangeEventArgs(task, start, end, progress, operation)​

Creates event data for the specified operation.

NameTypeDescription
taskGanttTaskThe task passed to the operation.
startDateTimeThe start passed to the operation.
endDateTimeThe end passed to the operation.
progressDoubleThe progress passed to the operation.
operationStringThe operation passed to the operation.

Properties​

Instance member End​

DateTime: Gets the proposed exclusive end date.

Instance member Operation​

String: Gets Move, Resize, or Progress.

Instance member Progress​

Double: Gets the proposed completion percentage.

Instance member Start​

DateTime: Gets the proposed start date.

Instance member Task​

GanttTask: Gets the affected task.