Back to Devexpress

TaskModificationEventArgs.ProcessedTask Property

windowsforms-devexpress-dot-xtragantt-dot-taskmodificationeventargs-04b1f206.md

latest1.9 KB
Original Source

TaskModificationEventArgs.ProcessedTask Property

Gets the modified task.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public GanttControlTask ProcessedTask { get; }
vb
Public ReadOnly Property ProcessedTask As GanttControlTask

Property Value

TypeDescription
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).

csharp
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)));
}

Run Demo: Startup Plan

See Also

TaskModificationEventArgs Class

TaskModificationEventArgs Members

DevExpress.XtraGantt Namespace