Back to Devexpress

GanttControlTimelineOptions.AllowResize Property

windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-ganttcontroltimelineoptions-f9d9346f.md

latest2.6 KB
Original Source

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

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Options")]
[XtraSerializableProperty]
public bool AllowResize { get; set; }
vb
<DXCategory("Options")>
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowResize As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowResize
GanttControl

.OptionsTimeline .AllowResize

|

Remarks

The following example demonstrates how to specify and lock a custom timeline height:

csharp
// Specifies the height of the timeline, in pixels.
ganttControl1.OptionsTimeline.TimelineHeight = 250;
// Locks the height of the timeline.
ganttControl1.OptionsTimeline.AllowResize = false;
vb
' Specifies the height of the timeline, in pixels.
ganttControl1.OptionsTimeline.TimelineHeight = 250
' Locks the height of the timeline.
ganttControl1.OptionsTimeline.AllowResize = False

See Also

TimelineHeight

TimelineSplitterPositionChanging

TimelineSplitterPositionChanged

GanttControlTimelineOptions Class

GanttControlTimelineOptions Members

DevExpress.XtraGantt.TimeLine Namespace