ClassSchedulerHolidays
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerHolidays : IEnumerable
Inheritance: objectSchedulerHolidays
Implements:
Constructors
SchedulerHolidays(RadScheduler)
Declaration
public SchedulerHolidays(RadScheduler scheduler)
Parameters
scheduler
Fields
Methods
AddHoliday(Holiday, bool)
Add holiday to the holidays collection.
AddHolidays(IEnumerable<Holiday>, bool)
Add holiday to the holidays collection.
Clear()
Clear the Holidays collections. This does not affect already created appointments.
Declaration
public void Clear()
GetAllLocations(Stream)
Get all location from the stream
GetAllLocations(string)
Get all locations from the stream
GetEnumerator()
Declaration
public IEnumerator<Holiday> GetEnumerator()
Returns
IEnumerator<Holiday>
GetHolidays(DateTime)
Return all holidays for the specific date (if any)
IsHoliday(DateTime)
Check if the specific date is contained in the Holidays collection.
ReadHolidays(Stream, bool)
Read the holidays information and create Holidays objects in the holidays collection. Optionally can create also and all day appointments for the holidays.
ReadHolidays(Stream, bool, IEnumerable<string>)
Read the holidays information and create Holidays objects in the holidays collection only for holidays in the specific locations. Optionally can create also and all day appointments for the holidays.
Declaration
public void ReadHolidays(Stream stream, bool createAppointment, IEnumerable<string> locations)
Parameters
stream
File name. File must be in HOL format.
createAppointment
If true this will be create an appointments for each holidays.
locations
IEnumerable<string>
Collection with locations.
ReadHolidays(string, bool)
Read the holidays information and create Holidays objects in the holidays collection. Optionally can create also and all day appointments for the holidays.
ReadHolidays(string, bool, IEnumerable<string>)
Read the holidays information and create Holidays objects in the holidays collection only for holidays in the specific locations. Optionally can create also and all day appointments for the holidays.
Declaration
public void ReadHolidays(string fileName, bool createAppointment, IEnumerable<string> locations)
Parameters
fileName
File name. File must be in HOL format.
createAppointment
If true this will be create an appointments for each holidays.
locations
IEnumerable<string>
Collection with locations.