Back to Devexpress

Resource Interface

corelibraries-devexpress-dot-xtrascheduler-2106cb7e.md

latest9.3 KB
Original Source

Resource Interface

Defines a common attribute which can be assigned to appointments to group them.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public interface Resource :
    IPersistentObject,
    IBatchUpdateable,
    IDisposable,
    IIdProvider
vb
Public Interface Resource
    Inherits IPersistentObject,
             IBatchUpdateable,
             IDisposable,
             IIdProvider

The following members return Resource objects:

Show 46 links

LibraryRelated API Members
Cross-Platform Class LibraryAppointmentDragEventArgs.HitResource
AppointmentResizeEventArgs.HitResource
IntervalFoundEventArgs.Resource
IResourceFactory.CreateResource()
IResourceStorageBase.CreateResource(Object, String)
IResourceStorageBase.CreateResource(Object)
IResourceStorageBase.GetResourceById(Object)
ISchedulerStorageBase.CreateResource(Object, String)
ISchedulerStorageBase.CreateResource(Object)
ISchedulerStorageBase.GetResourceById(Object)
MoreButtonClickedEventArgs.Resource
QueryResourceColorSchemaEventArgs.Resource
QueryWorkTimeEventArgs.Resource
ResourceBaseCollection.GetResourceById(Object)
ResourceEmpty.Resource
ResourceStorageBase.CreateResource(Object, String)
ResourceStorageBase.CreateResource(Object)
ResourceStorageBase.GetResourceById(Object)
ResourceStorageBase.Item[Int32]
SchedulerStorageBase.CreateResource(Object, String)
SchedulerStorageBase.CreateResource(Object)
WorkTimeValidationEventArgs.Resource
WinForms ControlsAppointmentFlyoutHtmlElementMouseEventArgs.Resource
CustomAppointmentFlyoutTemplateValueEventArgs.Resource
CustomizeAppointmentFlyoutTemplateEventArgs.Resource
ResourceCategory.SelectedResource
ResourceDataStorage.Add(Object, String, Color)
ResourceDataStorage.Add(Object, String)
ResourceDataStorage.Add(Object)
ResourceDataStorage.CreateResource(Object, String, Color)
ResourceDataStorage.CreateResource(Object, String)
ResourceDataStorage.CreateResource(Object)
ResourceDataStorage.GetResourceById(Object)
ResourceDataStorage.Item[Int32]
SchedulerControl.SelectedResource
SchedulerDataStorage.CreateResource(Object, String)
SchedulerDataStorage.CreateResource(Object)
SchedulerDataStorage.GetResourceById(Object)
SchedulerViewBase.SelectedResource
SingleWeekCellBase.Resource
ASP.NET Web Forms ControlsAppointmentViewInfo.Resource
ASPxScheduler.SelectedResource
ASPxSchedulerTimeCellPreparedEventArgs.Resource
SchedulerViewBase.SelectedResource
XAF: Cross-Platform .NET App UI & Web APISchedulerListEditor.SelectedResource
SchedulerListEditorBase.SelectedResource

Remarks

The Resource represents a common attribute which can be assigned to appointments to group them and facilitate the task of managing the time of resources and people groups under a single View. An appointment can be associated with a resource by setting the appointment’s Appointment.ResourceId property to the required resource’s unique identifier.

In addition to the members inherited from the PersistentObject class, the Resource class provides an interface enabling a resource instance’s caption (Resource.Caption), color (ResourceExtension.GetColor(), ResourceExtension.SetColor()), unique identifier (PersistentObject.Id) and visibility (Resource.Visible) to be specified.

Use the SchedulerStorageBase.CreateResource method to create a resource. Add it to the persistent storage using the ResourceStorageBase.Add method. Resources are maintained within the ResourceStorageBase.Items collection of a ResourceStorage object which is referenced by the SchedulerStorage.Resources property of the SchedulerStorage component.

An instance of the Resource can be accessed via the ResourceStorageBase.Item property of the ResourceStorage object.

See Also

Resource Members

DevExpress.XtraScheduler Namespace