windowsforms-devexpress-dot-xtragantt-dot-options-dot-ganttcontroloptionsbehavior-3b0cf08f.md
Gets or sets whether the control shifts a task or extends/reduces its duration when a user changes the task’s start or finish date.
Namespace : DevExpress.XtraGantt.Options
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue(TaskDateChangeMode.Default)]
[XtraSerializableProperty]
public TaskDateChangeMode TaskDateChangeMode { get; set; }
<XtraSerializableProperty>
<DefaultValue(TaskDateChangeMode.Default)>
Public Property TaskDateChangeMode As TaskDateChangeMode
| Type | Default | Description |
|---|---|---|
| TaskDateChangeMode | Default |
A value that specifies whether the control shifts a task or extends/reduces its duration when a user changes the task’s start or finish date.
|
Available values:
| Name | Description |
|---|---|
| Default |
The mode is not specified explicitly. Enables MoveTask mode.
| | MoveTask |
The control shifts a task when a user changes the task’s start or finish date.
| | UpdateDuration |
The control extends/reduces a task’s duration when a user changes the task’s start or finish date.
|
You can access this nested property as listed below:
| Object Type | Path to TaskDateChangeMode |
|---|---|
| GanttControl |
.OptionsBehavior .TaskDateChangeMode
|
The TaskDateChangeMode property specifies how a task changes when a user changes the task’s start or finish date:
See Also
GanttControlOptionsBehavior Class