TaskModificationEventArgs.ProcessedTask Property
In This Article
Gets the modified task.
Namespace: DevExpress.XtraGantt
Assembly: DevExpress.XtraGantt.v24.2.dll
NuGet Package: DevExpress.Win.Gantt
#Declaration
#Property Value
Type | Description |
---|---|
DevExpress. |
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
).
C#
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