Skip to main content
A newer version of this page is available. .
All docs
V23.1

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.v23.1.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