Back to Devexpress

SchedulerControl.Services Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-a92c5784.md

latest2.9 KB
Original Source

SchedulerControl.Services Property

Provides access to the object which contains all implemented services and service-oriented methods. Facilitates the use of Scheduler services.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[Browsable(false)]
public SchedulerServices Services { get; }
vb
<Browsable(False)>
Public ReadOnly Property Services As SchedulerServices

Property Value

TypeDescription
DevExpress.XtraScheduler.Services.SchedulerServices

A DevExpress.XtraScheduler.Services.SchedulerServices object, which provides access to implemented services and related methods.

|

Remarks

The Services property helps you find and use service-oriented properties and methods, since they are unfolded using the common Intellisense mechanism. Usage is very straightforward:

csharp
using DevExpress.XtraScheduler;
using DevExpress.XtraScheduler.Services;
//...
//Instead of the common practice of calling services, as follows:
//IResourceNavigationService svc = (IResourceNavigationService)schedulerControl1.GetService(
    typeof(IResourceNavigationService));
//if (svc != null)svc.NavigateForward();

//you may use one line of code, but note that the service existence is not guaranteed at runtime
schedulerControl1.Services.ResourceNavigation.NavigateForward();
vb
Imports DevExpress.XtraScheduler
Imports DevExpress.XtraScheduler.Services
'...
'Instead of the common practice of calling services, as follows:
'Private svc As IResourceNavigationService = CType(schedulerControl1.GetService( _ 
    GetType(IResourceNavigationService)), IResourceNavigationService)
'If Not svc Is Nothing Then
'svc.NavigateForward()
'End If

'you may use one line of code, but note that the service existence is not guaranteed at runtime
schedulerControl1.Services.ResourceNavigation.NavigateForward()

See Also

Services

GetService(Type)

AddService

RemoveService

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace