AppointmentDragEventArgs.NewAppointmentResourceIds Property
In This Article
Gets or sets the IDs of resources for a new appointment.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll
NuGet Package: DevExpress.Scheduler.CoreDesktop
#Declaration
public ResourceIdCollection NewAppointmentResourceIds { get; set; }
#Property Value
Type | Description |
---|---|
Resource |
A Resource |
#Remarks
Use this property to specify resources to associate with the AppointmentDragEventArgs.EditedAppointment in the appointment drag event.
The following code snippet illustrates this technique. It handles the SchedulerControl.AppointmentDrag event and assigns 2nd and 5th resources to the relocated appointment :
private void schedulerControl_AppointmentDrop(object sender, AppointmentDragEventArgs e)
{
ResourceIdCollection rid=new ResourceIdCollection();
rid.AddRange(new object[] { schedulerStorage.Resources[2].Id,
schedulerStorage.Resources[5].Id });
e.NewAppointmentResourceIds=rid;
e.Handled = true;
}
Note
The Scheduler
See Also