Skip to main content

WorkDaysCollection.GetWeekDays() Method

Returns a WeekDays enumeration, corresponding to work days in the collection.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public WeekDays GetWeekDays()

Returns

Type Description
WeekDays

A WeekDays enumeration.

Remarks

The following code illustrates the GetWeekDays method:

WorkDaysCollection wdc = new WorkDaysCollection();
wdc.Add(WeekDays.Friday);
wdc.Add(WeekDays.Monday);
WeekDays wd = wdc.GetWeekDays();
System.Console.WriteLine("The GetWeekDays method returns {0}", wd);

This example produces the following results:

The GetWeekDays method returns 34

Enumeration members are defined as Friday - 32, Monday - 2. (see WeekDays).

See Also