TaskModificationEventArgs.ProcessedTask Property
Gets the modified task.
Namespace: DevExpress.XtraGantt
Assembly: DevExpress.XtraGantt.v25.1.dll
NuGet Package: DevExpress.Win.Gantt
Declaration
Property Value
Type | Description |
---|---|
DevExpress.XtraGantt.Scheduling.GanttControlTask | An object that specifies a task. |
Remarks
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