Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttControlTimelineOptions.TimelinePosition Property

Gets or sets a value that specifies the visibility and position of a timeline.

Namespace: DevExpress.XtraGantt.TimeLine

Assembly: DevExpress.XtraGantt.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

[DefaultValue(TimelinePosition.Default)]
[DXCategory("Options")]
[XtraSerializableProperty]
public TimelinePosition TimelinePosition { get; set; }

#Property Value

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.

#Property Paths

You can access this nested property as listed below:

Object Type Path to TimelinePosition
GanttControl
.OptionsTimeline .TimelinePosition

#Remarks

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;
See Also