Class ScheduleHelper
Schedule Helper class.
Inheritance
System.Object
ScheduleHelper
Namespace: Syncfusion.SfSchedule.XForms
Assembly: Syncfusion.SfSchedule.XForms.dll
Syntax
public class ScheduleHelper : Object
Constructors
ScheduleHelper()
Declaration
public ScheduleHelper()
Methods
GetRecurrenceDateTimeCollection(String, DateTime, Nullable<DateTime>, Nullable<DateTime>)
Gets the date collection from the RRule, recStartDate, rangeStartDate, rangeEndDate.
Declaration
public static IEnumerable<DateTime> GetRecurrenceDateTimeCollection(string rRule, DateTime recStartDate, Nullable<DateTime> rangeStartDate = null, Nullable<DateTime> rangeEndDate = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | rRule | Recurrence rule. |
System.DateTime | recStartDate | Recurrence start date value. |
System.Nullable<System.DateTime> | rangeStartDate | Range start date value. |
System.Nullable<System.DateTime> | rangeEndDate | Range end date value. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.DateTime> | Recurrence date collection. |
RRuleGenerator(RecurrenceProperties, DateTime, DateTime)
Gets the RRule string value from the RecurrenceProperties, Appointment StartTime and EndTime.
Declaration
public static string RRuleGenerator(RecurrenceProperties recurrenceProperties, DateTime startTime, DateTime endTime)
Parameters
Type | Name | Description |
---|---|---|
RecurrenceProperties | recurrenceProperties | Recurrence properties. |
System.DateTime | startTime | Start time value. |
System.DateTime | endTime | End time value. |
Returns
Type | Description |
---|---|
System.String | Recurrence rule. |
RRuleParser(String, DateTime)
Returns the recurrence properties details for the recurring appointment from the given recurrence rule and the recurrence start date.
Declaration
public static RecurrenceProperties RRuleParser(string rRule, DateTime recStartDate)
Parameters
Type | Name | Description |
---|---|---|
System.String | rRule | Recurrence rule. |
System.DateTime | recStartDate | Recurrence start date. |
Returns
Type | Description |
---|---|
RecurrenceProperties | Recurrence properties. |