GanttTaskChangeEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes a cancellable proposed task edit before mutation.
- C#
- VB.NET
public class GanttTaskChangeEventArgs : CancelEventArgs
Public Class GanttTaskChangeEventArgs
Inherits 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
GanttTaskChangeEventArgs(task, start, end, progress, operation)
Creates event data for the specified operation.
| Name | Type | Description |
|---|---|---|
| task | GanttTask | The task passed to the operation. |
| start | DateTime | The start passed to the operation. |
| end | DateTime | The end passed to the operation. |
| progress | Double | The progress passed to the operation. |
| operation | String | The operation passed to the operation. |
Properties
End
DateTime: Gets the proposed exclusive end date.
Operation
String: Gets Move, Resize, or Progress.
Progress
Double: Gets the proposed completion percentage.
Start
DateTime: Gets the proposed start date.
Task
GanttTask: Gets the affected task.