corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdependency.md
Gets or sets the type of dependency between parent and dependent appointments.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
AppointmentDependencyType Type { get; set; }
Property Type As AppointmentDependencyType
| Type | Description |
|---|---|
| AppointmentDependencyType |
An AppointmentDependencyType enumeration value that is the type of dependency between appointments.
|
Available values:
| Name | Description |
|---|---|
| FinishToStart |
Dependent task cannot start before the Parent task is finished.
A data record for the appointment dependency of this type is shown above. The integer value of the enum is 0.
| | StartToStart |
Dependent task cannot start before the Parent task starts.
A data record for the appointment dependency of this type is shown above. The integer value of the enum is 1.
| | FinishToFinish |
Dependent task cannot finish before the Parent task is finished.
A data record for the appointment dependency of this type is shown above. The integer value of the enum is 2.
| | StartToFinish |
Dependent task cannot finish before the Parent task starts.
A data record for the appointment dependency of this type is shown above. The integer value of the enum is 3.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Type 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-scheduler-enforce-task-dependencies-gantt-view/CS/GanttRestrictions/Form1.cs#L54
foreach (AppointmentDependency dep in depCollection) {
if (dep.Type == AppointmentDependencyType.FinishToStart) {
DateTime checkTime = schedulerDataStorage1.Appointments.Items.GetAppointmentById(dep.ParentId).End;
winforms-scheduler-enforce-task-dependencies-gantt-view/VB/GanttRestrictions/Form1.vb#L44
For Each dep As AppointmentDependency In depCollection
If dep.Type = AppointmentDependencyType.FinishToStart Then
Dim checkTime As Date = schedulerDataStorage1.Appointments.Items.GetAppointmentById(dep.ParentId).End
See Also