Class SchedulerHolidays
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerHolidays : IEnumerable<Holiday>, IEnumerable
Constructors
SchedulerHolidays(RadScheduler)
Fields
holidayDateSeparator
Declaration
protected char[] holidayDateSeparator
Field Value
System.Char[]
|
holidayLineSeparator
Declaration
protected char[] holidayLineSeparator
Field Value
System.Char[]
|
Properties
Holidays
Represents the internal collection with Holidays
Declaration
public ObservableCollection<Holiday> Holidays { get; }
Property Value
ObservableCollection<Holiday>
|
Methods
AddHoliday(Holiday, Boolean)
Add holiday to the holidays collection.
Declaration
public virtual void AddHoliday(Holiday holiday, bool createAppointment)
Parameters
Holiday
holiday
the holiday object |
System.Boolean
createAppointment
if true this will create an all day appointment |
AddHolidays(IEnumerable<Holiday>, Boolean)
Add holiday to the holidays collection.
Declaration
public virtual void AddHolidays(IEnumerable<Holiday> holidays, bool createAppointment)
Parameters
System.Collections.Generic.IEnumerable<Holiday>
holidays
Collection with holidays |
System.Boolean
createAppointment
if true this will create an all day appointment |
Clear()
Clear the Holidays collections. This does not affect already created appointments.
Declaration
public void Clear()
GetAllLocations(Stream)
Get all location from the stream
Declaration
public List<string> GetAllLocations(Stream stream)
Parameters
System.IO.Stream
stream
The input stream |
Returns
System.Collections.Generic.List<System.String>
List with the locations |
GetAllLocations(String)
Get all locations from the stream
Declaration
public List<string> GetAllLocations(string fileName)
Parameters
System.String
fileName
The input file |
Returns
System.Collections.Generic.List<System.String>
List with the locations |
GetEnumerator()
Declaration
public IEnumerator<Holiday> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Holiday>
|
Implements
GetHolidays(DateTime)
Return all holidays for the specific date (if any)
Declaration
public virtual IEnumerable<Holiday> GetHolidays(DateTime dateTime)
Parameters
System.DateTime
dateTime
Date to check |
Returns
System.Collections.Generic.IEnumerable<Holiday>
Collection with holidays - may be null if there is not holidays for this date |
IsHoliday(DateTime)
Check if the specific date is contained in the Holidays collection.
Declaration
public virtual bool IsHoliday(DateTime dateTime)
Parameters
System.DateTime
dateTime
Date to check. |
Returns
System.Boolean
true if holidays collection contains the date |
ReadHolidays(Stream, Boolean)
Read the holidays information and create Holidays objects in the holidays collection. Optionally can create also and all day appointments for the holidays.
Declaration
public void ReadHolidays(Stream stream, bool createAppointment)
Parameters
System.IO.Stream
stream
stream must be in HOL format. |
System.Boolean
createAppointment
If true this will be create an appointments for each holidays. |
ReadHolidays(Stream, Boolean, 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
System.IO.Stream
stream
File name. File must be in HOL format. |
System.Boolean
createAppointment
If true this will be create an appointments for each holidays. |
System.Collections.Generic.IEnumerable<System.String>
locations
Collection with locations. |
ReadHolidays(String, Boolean)
Read the holidays information and create Holidays objects in the holidays collection. Optionally can create also and all day appointments for the holidays.
Declaration
public void ReadHolidays(string fileName, bool createAppointment)
Parameters
System.String
fileName
File name. File must be in HOL format. |
System.Boolean
createAppointment
If true this will be create an appointments for each holidays. |
ReadHolidays(String, Boolean, 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
System.String
fileName
File name. File must be in HOL format. |
System.Boolean
createAppointment
If true this will be create an appointments for each holidays. |
System.Collections.Generic.IEnumerable<System.String>
locations
Collection with locations. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
|