Back to Devexpress

GanttControl.ChartStartDate Property

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-c0bfd203.md

latest2.8 KB
Original Source

GanttControl.ChartStartDate Property

Gets or sets the first date in the chart area.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Data")]
public virtual DateTime? ChartStartDate { get; set; }
vb
<DXCategory("Data")>
<DefaultValue(Nothing)>
Public Overridable Property ChartStartDate As Date?

Property Value

TypeDefaultDescription
Nullable<DateTime>null

A DateTime value that specifies a date.

|

Remarks

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

csharp
ganttControl1.ChartStartDate = new DateTime(2020, 6, 1);
ganttControl1.ChartFinishDate = new DateTime(2020, 6, 10);
vb
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

Timescale

ChartStartDate

ChartFinishDate

ChartStartDate

ChartFinishDate

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace