windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-ganttcontroltimelineoptions.md
Gets or sets a value that specifies the visibility and position of a timeline.
Namespace : DevExpress.XtraGantt.TimeLine
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue(TimelinePosition.Default)]
[DXCategory("Options")]
[XtraSerializableProperty]
public TimelinePosition TimelinePosition { get; set; }
<DXCategory("Options")>
<DefaultValue(TimelinePosition.Default)>
<XtraSerializableProperty>
Public Property TimelinePosition As TimelinePosition
| Type | Default | Description |
|---|---|---|
| TimelinePosition | Default |
A value that specifies the position of a timeline.
|
Available values:
| Name | Description |
|---|---|
| Default |
The same as TimelinePosition.None.
| | Top |
Displays a timeline at the top of the Gantt control.
| | Bottom |
Displays a timeline at the bottom of the Gantt control.
| | None |
Hides a timeline.
|
You can access this nested property as listed below:
| Object Type | Path to TimelinePosition |
|---|---|
| GanttControl |
.OptionsTimeline .TimelinePosition
|
Use the TimelinePosition property to display a timeline at the top or bottom of the Gantt control. Set the TimelinePosition property to TimelinePosition.None to hide the timeline.
// Displays a timeline at the top of the Gantt control.
ganttControl1.OptionsTimeline.TimelinePosition = DevExpress.XtraGantt.TimelinePosition.Top;
' Displays a timeline at the top of the Gantt control.
ganttControl1.OptionsTimeline.TimelinePosition = DevExpress.XtraGantt.TimelinePosition.Top
See Also
GanttControlTimelineOptions Class