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.TimelineHeight Property

Gets or sets the height of a timeline, in pixels.

Namespace: DevExpress.XtraGantt.TimeLine

Assembly: DevExpress.XtraGantt.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

[DefaultValue(150)]
[DXCategory("Options")]
[XtraSerializableProperty]
public int TimelineHeight { get; set; }

#Property Value

Type Default Description
Int32 150

An integer value that specifies the height of a timeline, in pixels.

#Property Paths

You can access this nested property as listed below:

Object Type Path to TimelineHeight
GanttControl
.OptionsTimeline .TimelineHeight

#Remarks

Setting the TimelineHeight property to a new value has no effect if the AllowResize property is set to false.

Note

The Gantt control does not raise the TimelineSplitterPositionChanging and TimelineSplitterPositionChanged events when changing the value of the TimelineHeight property.

#Example

The following example demonstrates how to specify and lock a custom timeline height:

// Specifies the height of a timeline, in pixels.
ganttControl1.OptionsTimeline.TimelineHeight = 250;
// Locks the height of a timeline.
ganttControl1.OptionsTimeline.AllowResize = false;
See Also