windowsforms-devexpress-dot-xtragantt-dot-options-dot-ganttcontroloptionsbehavior-835264b5.md
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
[DefaultValue(ConstraintMode.Default)]
[XtraSerializableProperty]
public ConstraintMode ConstraintMode { get; set; }
<XtraSerializableProperty>
<DefaultValue(ConstraintMode.Default)>
Public Property ConstraintMode As ConstraintMode
| Type | Default | Description |
|---|---|---|
| ConstraintMode | Default |
Default or Auto if the control automatically applies constraints to tasks; otherwise, Manual.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
You can access this nested property as listed below:
| Object Type | Path to ConstraintMode |
|---|---|
| GanttControl |
.OptionsBehavior .ConstraintMode
|
See Also
GanttControlOptionsBehavior Class