Back to Devexpress

GanttControlOptionsBehavior.ConstraintMode Property

windowsforms-devexpress-dot-xtragantt-dot-options-dot-ganttcontroloptionsbehavior-835264b5.md

latest2.8 KB
Original Source

GanttControlOptionsBehavior.ConstraintMode Property

Gets or sets whether the control automatically applies the Start No Earlier Than constraint to a task if you change its start date and the Finish No Earlier Than constraint if you change its finish date.

Namespace : DevExpress.XtraGantt.Options

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DefaultValue(ConstraintMode.Default)]
[XtraSerializableProperty]
public ConstraintMode ConstraintMode { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(ConstraintMode.Default)>
Public Property ConstraintMode As ConstraintMode

Property Value

TypeDefaultDescription
ConstraintModeDefault

Default or Auto if the control automatically applies constraints to tasks; otherwise, Manual.

|

Available values:

NameDescription
Default

The mode is not specified explicitly. Enables Auto mode.

| | Auto |

The control automatically applies the Start No Earlier Than constraint to a task if you change its start date and the Finish No Earlier Than constraint if you change its finish date.

| | Manual |

The control does not automatically apply a constraint if you change a task’s start or finish date.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ConstraintMode
GanttControl

.OptionsBehavior .ConstraintMode

|

See Also

Task Constraints

GanttControlOptionsBehavior Class

GanttControlOptionsBehavior Members

DevExpress.XtraGantt.Options Namespace