Back to Devexpress

GanttControlTimelineOptions.TimelineHeight Property

windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-ganttcontroltimelineoptions-0ac9f47f.md

latest2.9 KB
Original Source

GanttControlTimelineOptions.TimelineHeight Property

Gets or sets the height of a timeline, in pixels.

Namespace : DevExpress.XtraGantt.TimeLine

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DefaultValue(150)]
[DXCategory("Options")]
[XtraSerializableProperty]
public int TimelineHeight { get; set; }
vb
<DXCategory("Options")>
<DefaultValue(150)>
<XtraSerializableProperty>
Public Property TimelineHeight As Integer

Property Value

TypeDefaultDescription
Int32150

An integer value that specifies the height of a timeline, in pixels.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to TimelineHeight
GanttControl

.OptionsTimeline .TimelineHeight

|

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:

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

See Also

AllowResize

GanttControlTimelineOptions Class

GanttControlTimelineOptions Members

DevExpress.XtraGantt.TimeLine Namespace