Skip to main content
A newer version of this page is available. .

WorkDaysCollection.GetWeekDays() Method

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

Namespace: DevExpress.XtraScheduler

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

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