alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class RecurrenceHelper

    Represents a helper for handling recurrence appointments.

    Inheritance
    object
    RecurrenceHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Schedule
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public static class RecurrenceHelper

    Methods

    GetRecurrenceDateTimeCollection(string, string, int, DateTime, DateTime?, DateTime?, DateTime?, int?)

    Method to get recurrence appointment's date-time collection.

    Declaration
    public static ObservableCollection<DateTime> GetRecurrenceDateTimeCollection(string recurrenceRule, string excludedDates, int firstDayOfWeek, DateTime recurrenceStartDate, DateTime? recurrenceEndDate, DateTime? dateRangeStart, DateTime? dateRangeEnd, int? maximumCount)
    Parameters
    Type Name Description
    string recurrenceRule

    RRule of Recurrence appointment's.

    string excludedDates

    Dates exclude from collection

    int firstDayOfWeek

    First day of week

    DateTime recurrenceStartDate

    Recurrence start date.

    DateTime? recurrenceEndDate

    Recurrence end date.

    DateTime? dateRangeStart

    Start date to collect the recurrence dates from the specified date range.

    DateTime? dateRangeEnd

    End date to collect the recurrence dates from the specified date range.

    int? maximumCount

    Length of the recurrence DateTime collection.

    Returns
    Type Description
    ObservableCollection<DateTime>

    Collection of recurrence date time

    Examples
    List<DateTime> dateList = new List<DateTime>();
    void GetDates()
    {
        dateList = RecurrenceHelper.GetRecurrenceDateTimeCollection("FREQ=WEEKLY;BYDAY=TU;INTERVAL=1;", "20221220T090000Z", 0, new DateTime(2022, 11, 9), new DateTime(2023, 1, 31), new DateTime(2022, 11, 9), new DateTime(2023, 1, 31), 9).ToList();  
    }

    GetRuleSummary(string, ISyncfusionStringLocalizer)

    Method to get the rule summary.

    Declaration
    public static string GetRuleSummary(string recurrenceRule, ISyncfusionStringLocalizer localizer)
    Parameters
    Type Name Description
    string recurrenceRule

    Recurrence rule.

    ISyncfusionStringLocalizer localizer

    Syncfusion Localizer.

    Returns
    Type Description
    string

    Recurrence rule summary

    Examples
    @inject ISyncfusionStringLocalizer Localizer
    string ruleSummary;
    void RuleSummary()
    {
        ruleSummary = RecurrenceHelper.GetRuleSummary("FREQ=WEEKLY;BYDAY=TU;INTERVAL=1;", Localizer);
    }
    Exceptions
    Type Condition
    ArgumentNullException

    Recurrence rule or localizer is null

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved