windowsforms-devexpress-dot-xtragantt-dot-taskmodificationeventargs-04b1f206.md
Gets the modified task.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
public GanttControlTask ProcessedTask { get; }
Public ReadOnly Property ProcessedTask As GanttControlTask
| Type | Description |
|---|---|
| DevExpress.XtraGantt.Scheduling.GanttControlTask |
An object that specifies a task.
|
The following code snippet tracks task progress modifications in a Gantt control. It handles the TaskProgressModified event to log the updated progress of a task (e.ProcessedTask).
void GanttControl1_TaskProgressModified(object sender, TaskProgressModifiedEventArgs e) {
AppendProgressInfo("TaskProgressModified", e.ProcessedTask, e.CurrentProgress);
}
void AppendProgressInfo(string eventName, GanttControlTask processedTask, float currentProgress) {
logger.Append(eventName);
logger.AppendWithIndent(string.Format("Task: {0}", processedTask.TooltipText));
logger.AppendWithIndent(string.Format("Progress: {0}%", Math.Round(currentProgress * 100, 1)));
}
See Also
TaskModificationEventArgs Class