windowsforms-devexpress-dot-xtragantt-dot-options-dot-ganttcontroloptionsprint-2d4e9c76.md
Gets or sets the last date in the chart area.
Namespace : DevExpress.XtraGantt.Options
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue(null)]
[XtraSerializableProperty]
public DateTime? ChartFinishDate { get; set; }
<DefaultValue(Nothing)>
<XtraSerializableProperty>
Public Property ChartFinishDate As Date?
| Type | Default | Description |
|---|---|---|
| Nullable<DateTime> | null |
A DateTime value that specifies a date.
|
You can access this nested property as listed below:
| Object Type | Path to ChartFinishDate |
|---|---|
| GanttControl |
.OptionsPrint .ChartFinishDate
|
The Gantt control’s ChartStartDate and ChartFinishDate properties specify the first and last visible dates in the chart area. Use these properties to specify an approximate date range (see the example below).
ganttControl1.ChartStartDate = new DateTime(2020, 6, 1);
ganttControl1.ChartFinishDate = new DateTime(2020, 6, 10);
ganttControl1.ChartStartDate = New Date(2020, 6, 1)
ganttControl1.ChartFinishDate = New Date(2020, 6, 10)
You can also use the OptionsPrint property to access the ChartStartDate and ChartFinishDate properties that specify the first and last visible dates when the chart is printed or exported.
See Also
Print and Export Gantt Control
GanttControlOptionsPrint Class