Skip to main content
All docs
V24.2

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

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