Back to Devexpress

GanttControlTimelineOptions.TimelinePosition Property

windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-ganttcontroltimelineoptions.md

latest2.8 KB
Original Source

GanttControlTimelineOptions.TimelinePosition Property

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

Declaration

csharp
[DefaultValue(TimelinePosition.Default)]
[DXCategory("Options")]
[XtraSerializableProperty]
public TimelinePosition TimelinePosition { get; set; }
vb
<DXCategory("Options")>
<DefaultValue(TimelinePosition.Default)>
<XtraSerializableProperty>
Public Property TimelinePosition As TimelinePosition

Property Value

TypeDefaultDescription
TimelinePositionDefault

A value that specifies the position of a timeline.

|

Available values:

NameDescription
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 TypePath 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.

csharp
// Displays a timeline at the top of the Gantt control.
ganttControl1.OptionsTimeline.TimelinePosition = DevExpress.XtraGantt.TimelinePosition.Top;
vb
' Displays a timeline at the top of the Gantt control.
ganttControl1.OptionsTimeline.TimelinePosition = DevExpress.XtraGantt.TimelinePosition.Top

See Also

Timeline

GanttControlTimelineOptions Class

GanttControlTimelineOptions Members

DevExpress.XtraGantt.TimeLine Namespace