GanttControlTimelineOptions.TimelineHeight Property
Gets or sets the height of a timeline, in pixels.
Namespace: DevExpress.XtraGantt.TimeLine
Assembly: DevExpress.XtraGantt.v24.2.dll
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 |
|
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