skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SchedulerHolidays

Inheritance
System.Object
SchedulerHolidays
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll

Syntax

public class SchedulerHolidays : IEnumerable<Holiday>, IEnumerable

Constructors

SchedulerHolidays(RadScheduler)

Declaration
public SchedulerHolidays(RadScheduler scheduler)
Parameters
RadScheduler scheduler

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
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

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

Implements
System.Collections.IEnumerable.GetEnumerator()

Extension Methods

CommonExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
CommonExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CommonExtensions.Clone<T>(IEnumerable<T>)
ExtensionMethodsEditor.CastCovariant<TFrom, TTo>(IEnumerable<TFrom>)
SvgExtentions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.