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

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.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

[DefaultValue(true)]
[DXCategory("Options")]
[XtraSerializableProperty]
public bool AllowResize { get; set; }

#Property Value

Type Default Description
Boolean true

true to allow a timeline to be resized; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AllowResize
GanttControl
.OptionsTimeline .AllowResize

#Remarks

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;
See Also