GanttView facilitates you to schedule your project from finish date or start date as per your convenience. To do so, you can use ScheduleFrom property of the Project class. After scheduling your project, you can specify the start date and finish date of your task by using Start and Finish properties of the Task class.
The following image represents the start and finish dates of a task in GanttView.
To set the start and finish dates for your task, use the following code. This example uses the sample created in Quick Start.
C# |
コードのコピー
|
---|---|
//Task1 の開始日を定義します。 t1.Start = new DateTime(2022, 04, 5); t1.Finish = new DateTime(2022, 04, 12); |
Alternatively, you can use the Task Collection Editor to set the start and finish date. For more information, see Task Collection Editor.