windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-ganttcontroltimelineoptions-0ac9f47f.md
Gets or sets the height of a timeline, in pixels.
Namespace : DevExpress.XtraGantt.TimeLine
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue(150)]
[DXCategory("Options")]
[XtraSerializableProperty]
public int TimelineHeight { get; set; }
<DXCategory("Options")>
<DefaultValue(150)>
<XtraSerializableProperty>
Public Property TimelineHeight As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 150 |
An integer value that specifies the height of a timeline, in pixels.
|
You can access this nested property as listed below:
| Object Type | Path to TimelineHeight |
|---|---|
| GanttControl |
.OptionsTimeline .TimelineHeight
|
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.
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;
' Specifies the height of a timeline, in pixels.
ganttControl1.OptionsTimeline.TimelineHeight = 250
' Locks the height of a timeline.
ganttControl1.OptionsTimeline.AllowResize = False
See Also
GanttControlTimelineOptions Class