windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-ganttcontroltimelineoptions-f9d9346f.md
Gets or sets whether the height of a timeline can be changed by a user or in code.
Namespace : DevExpress.XtraGantt.TimeLine
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue(true)]
[DXCategory("Options")]
[XtraSerializableProperty]
public bool AllowResize { get; set; }
<DXCategory("Options")>
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowResize As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to allow a timeline to be resized; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowResize |
|---|---|
| GanttControl |
.OptionsTimeline .AllowResize
|
The following example demonstrates how to specify and lock a custom timeline height:
// Specifies the height of the timeline, in pixels.
ganttControl1.OptionsTimeline.TimelineHeight = 250;
// Locks the height of the timeline.
ganttControl1.OptionsTimeline.AllowResize = false;
' Specifies the height of the timeline, in pixels.
ganttControl1.OptionsTimeline.TimelineHeight = 250
' Locks the height of the timeline.
ganttControl1.OptionsTimeline.AllowResize = False
See Also
TimelineSplitterPositionChanging
TimelineSplitterPositionChanged
GanttControlTimelineOptions Class