Holiday
Stores the date, name, and location used to represent a holiday in a scheduler.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class Holiday : INotifyPropertyChanged
Inheritance: objectHoliday
Implements:
Constructors
Creates an empty holiday record that can be populated through its properties.
public Holiday()
Creates a holiday with a date, name, and location.
public Holiday(DateTime date, string holidayName, string location)
The holiday date; its time component is retained, but matching and generated appointments use only its date.
holidayNamestringThe holiday name, used as the summary when an appointment is created for the holiday.
locationstringThe holiday location, used as the location when an appointment is created for the holiday.
Creates a holiday for the specified date and gives it a name.
Creates a holiday for the calendar day containing the specified date.
public Holiday(DateTime date)
The holiday date; its time component is retained, but matching and generated appointments use only its date.
Properties
Gets or sets the stored holiday date. The time component is retained, but holiday matching and created appointments use only the date.
public DateTime Date { get; set; }
Name of the Holiday
public string HolidayName { get; set; }
Methods
Raises PropertyChanged for the specified property name.
public void OnPropertyChanged(string propertyName)
The name reported in the change notification.
Returns a space-separated string containing the date, holiday name, and location.
public override string ToString()
The date, name, and location in that order.
Overrides:
Events
Fires when Date or Holiday Name or Location changed.
public event PropertyChangedEventHandler PropertyChanged
Implements: