Skip to main content
All docs
V24.1

GanttControl.FocusedTimelineBar Property

Gets or sets the focused timeline bar.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.1.dll

NuGet Package: DevExpress.Win.Gantt

Declaration

[Browsable(false)]
public TimelineBar FocusedTimelineBar { get; set; }

Property Value

Type Description
TimelineBar

The focused timeline bar.

Remarks

The Gantt control holds its timeline bars in the TimelineBars collection.

The following example demonstrates how to create a timeline bar, display and focus it on the timeline.

TimelineBar timelineBar = ganttControl1.AddTimelineBar();
ganttControl1.FocusedTimelineBar = timelineBar;

Read the following topic for detailed information and examples: Timeline.

See Also