Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TaskModificationEventArgs.ProcessedTask Property

Gets the modified task.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

public GanttControlTask ProcessedTask { get; }

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

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

Run Demo: Startup Plan

See Also