Back to Devexpress

GanttControl.FocusedTimelineBar Property

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-59032c07.md

latest1.8 KB
Original Source

GanttControl.FocusedTimelineBar Property

Gets or sets the focused timeline bar.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[Browsable(false)]
public TimelineBar FocusedTimelineBar { get; set; }
vb
<Browsable(False)>
Public Property FocusedTimelineBar As TimelineBar

Property Value

TypeDescription
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.

csharp
TimelineBar timelineBar = ganttControl1.AddTimelineBar();
ganttControl1.FocusedTimelineBar = timelineBar;
vb
Dim timelineBar As TimelineBar = ganttControl1.AddTimelineBar()
ganttControl1.FocusedTimelineBar = timelineBar

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

See Also

TimelineBars

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace