Back to Devexpress

GanttControlOptionsView.ShowBaselines Property

windowsforms-devexpress-dot-xtragantt-dot-ganttcontroloptionsview.md

latest3.1 KB
Original Source

GanttControlOptionsView.ShowBaselines Property

Gets or sets whether to show task baselines in the chart area.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Lines")]
[XtraSerializableProperty]
public bool ShowBaselines { get; set; }
vb
<DXCategory("Lines")>
<XtraSerializableProperty>
<DefaultValue(False)>
Public Property ShowBaselines As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to show task baselines in the chart area; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowBaselines
GanttControl

.OptionsView .ShowBaselines

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowBaselines property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.cs#L41

csharp
gantt.CustomDrawEmptyArea += Gantt_CustomDrawEmptyArea;
gantt.OptionsView.ShowBaselines = true;
gantt.OptionsBehavior.Editable = false;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.vb#L38

vb
AddHandler gantt.CustomDrawEmptyArea, AddressOf Gantt_CustomDrawEmptyArea
gantt.OptionsView.ShowBaselines = True
gantt.OptionsBehavior.Editable = False

See Also

GanttControlOptionsView Class

GanttControlOptionsView Members

DevExpress.XtraGantt Namespace