GanttControlTimelineOptions.TimelineHeight Property
In This Article
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 Timeline |
---|---|
Gantt |
|
#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 TimelineTimeline
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