About Progress

  • Company
    • Company Overview
    • Leadership
    • Corporate Social Responsibility
    • Investor Relations
    • Press Releases
    • Press Coverage
    • Recognitions
    • Progress Labs
    • Events
    • Customers
    • Careers
    • Offices
  • Technology
    • Cloud Native App Dev Platform
    • Cognitive Services
    • Web Content Management
    • UI/UX Tools
    • Secure Data Connectivity and Integration
    • Secure Managed File Transfer
    • OpenEdge
    • Network Monitoring
  • Services
    • Consulting
    • Education
    • Modernization
    • Outsourcing
  • Product Bundles

    DevCraft

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

    • Conversational UI
    • Online Training
    • Document Processing Library
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin NativeScript OSS framework
    Desktop
    UI for WPF UI for UWP UI for WinForms
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Class RecurrenceRule

Represents a base class that the actual recurrence rules extend.

Inheritance
System.Object
RecurrenceRule
DailyRecurrenceRule
HourlyRecurrenceRule
MinutelyRecurrenceRule
WeeklyRecurrenceRule
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll

Syntax

public abstract class RecurrenceRule : INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>

Constructors

RecurrenceRule()

Initializes a new instance of the RecurrenceRule class.

Declaration
public RecurrenceRule()

RecurrenceRule(DateTime, DateTime, Int32)

Initializes a new instance of the RecurrenceRule class.

Declaration
public RecurrenceRule(DateTime start, DateTime end, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

System.DateTime end

The end of the recurrence rule.

System.Int32 interval

The interval.

RecurrenceRule(DateTime, DateTime, Int32, Int32)

Initializes a new instance of the RecurrenceRule class.

Declaration
public RecurrenceRule(DateTime start, DateTime end, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

System.DateTime end

The end of the recurrence rule.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The maximum number of occurrences.

RecurrenceRule(DateTime, Int32)

Initializes a new instance of the RecurrenceRule class.

Declaration
public RecurrenceRule(DateTime start, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 interval

The interval of the recurrence rule.

RecurrenceRule(DateTime, Int32, Int32)

Initializes a new instance of the RecurrenceRule class.

Declaration
public RecurrenceRule(DateTime start, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The maximum number of occurrences.

Fields

DefaultCount

Declaration
public static readonly int DefaultCount
Field Value
System.Int32

DefaultEndDate

Declaration
public static readonly DateTime DefaultEndDate
Field Value
System.DateTime

Properties

Count

Gets or sets the maximum number of occurrences.

Declaration
public int Count { get; set; }
Property Value
System.Int32

The count.

End

Gets or sets the end of the recurrence rule.

Declaration
public DateTime End { get; set; }
Property Value
System.DateTime

The end.

EventDuration

Gets the durration of the recurring event.

Declaration
public TimeSpan EventDuration { get; }
Property Value
System.TimeSpan

ExceptionDates

Declaration
public IList<DateTime> ExceptionDates { get; }
Property Value
System.Collections.Generic.IList<System.DateTime>

Frequency

Gets the type of the recurrence rule.

Declaration
public abstract RecurrenceType Frequency { get; }
Property Value
RecurrenceType

The type of the recurrence rule.

Interval

Gets or sets the interval of the recurrence rule.

Declaration
public int Interval { get; set; }
Property Value
System.Int32

The interval.

Start

Gets or sets the start of the recurrence rule.

Declaration
public DateTime? Start { get; set; }
Property Value
System.Nullable<System.DateTime>

The start.

Methods

Clone()

Declaration
public RecurrenceRule Clone()
Returns
RecurrenceRule

CopyProperties(RecurrenceRule)

Declaration
protected virtual void CopyProperties(RecurrenceRule other)
Parameters
RecurrenceRule other

CreateInstance()

Declaration
protected abstract RecurrenceRule CreateInstance()
Returns
RecurrenceRule

CreateRule(RecurrenceType)

Creates a rule given its type.

Declaration
public static RecurrenceRule CreateRule(RecurrenceType type)
Parameters
RecurrenceType type

The type of the recurrence rule.

Returns
RecurrenceRule

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

Equals(RecurrenceRule)

Declaration
public virtual bool Equals(RecurrenceRule other)
Parameters
RecurrenceRule other

Returns
System.Boolean

Implements
System.IEquatable<T>.Equals(T)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

GetOccurrenceStart(Int32, DateTime, DateTimeFormatInfo)

Gets a date at a given index after the specified startDate. The returned date will be checked with MatchAdvancedPattern to see if it matches the recurrence rule. NOTE: The returned date is not an actual occurence start. To get the start date of a real occurrence use OccurrenceEnumerator.

Declaration
public abstract DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters
System.Int32 index

The index after the suggested date.

System.DateTime startDate

The suggested start date.

System.Globalization.DateTimeFormatInfo dateTimeFormat

The date time format.

Returns
System.DateTime

A potential occurrence start which should be checked if it matches the pattern.

IntersectsWithException(DateTime, TimeSpan, IEvent)

Declaration
public abstract bool IntersectsWithException(DateTime eventStart, TimeSpan eventDuration, IEvent exception)
Parameters
System.DateTime eventStart

System.TimeSpan eventDuration

IEvent exception

Returns
System.Boolean

IsExceptionDate(DateTime)

Checks if there is an occurrence exception on the specified date.

Declaration
public virtual bool IsExceptionDate(DateTime date)
Parameters
System.DateTime date

The date to check for exceptions.

Returns
System.Boolean

[true] if there is an exception on that date, [false] otherwise

IsValid()

Declaration
public virtual bool IsValid()
Returns
System.Boolean

MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

Declaration
public virtual bool MatchAdvancedPattern(DateTime start, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime start

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.Boolean

OnPropertyChanged(String)

Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
System.String propertyName

ResumeNotifications()

Declaration
public virtual void ResumeNotifications()

SuspendNotifications()

Declaration
public virtual void SuspendNotifications()

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

TryGetCloseToNextOccurrenceDate(DateTime, Boolean, out DateTime)

Declaration
public virtual bool TryGetCloseToNextOccurrenceDate(DateTime currentDate, bool hasOcurrenceOnCurrentDate, out DateTime closeToNextDate)
Parameters
System.DateTime currentDate

System.Boolean hasOcurrenceOnCurrentDate

System.DateTime closeToNextDate

Returns
System.Boolean

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

Explicit Interface Implementations

ICloneable.Clone()

Declaration
object ICloneable.Clone()
Returns
System.Object

Implements
System.ICloneable.Clone()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

 / 
Tell us how we can improve this article
Skip
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.