GanttView makes it easier for you to rearrange your tasks to occupy new positions in the project's schedule. You can move a task at run time using the up or down arrows located on the GanttView Toolbar.
実行時にタスクを移動するには、以下の手順に従います
To move a task using code, you can use RemoveAt and Insert methods of the Collection class.
The below code snippet shows how you can move a task programmatically in the GanttView.
C# |
コードのコピー
|
---|---|
int taskindex = tasks.IndexOf("Task 1"); C1.Win.C1GanttView.Task task1 = tasks[taskindex]; tasks.RemoveAt(0); tasks.Insert(1, task1); |