Occurrence
Provides class for appointment occurrence.
Definition
Namespace:Telerik.Maui.Controls.Scheduler
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class Occurrence : IDateRange, IEquatable<Occurrence>
Inheritance: objectOccurrence
Implements:
Properties
Gets the appointment for this occurrence.
public IAppointment Appointment { get; }
The appointment for this occurrence.
Gets the end DateTime of the IDateRange.
Gets the master appointment for this occurrence. If this occurrence is an exception, this property is the master appointment for the exception; otherwise this property is the same as the Appointment property.
public IAppointment Master { get; }
The master appointment.
Gets the date of the occurrence this exception is replacing.
public DateTime OriginalStart { get; }
Gets the start DateTime of the IDateRange.
Gets the recurrence state.
public RecurrenceState State { get; }
The state.
Methods
Creates a new instance of the Occurrence class with Exception state.
public static Occurrence CreateException(IAppointment master, IAppointment exception, DateTime originalStart)
The master.
exceptionIAppointmentThe exception.
originalStartDateTimeThe original start.
Returns:New occurrence with with Exception state.
Creates a new instance of the Occurrence class with Master state.
public static Occurrence CreateMaster(IAppointment master)
The master.
Returns:Creates a new instance of the Occurrence class with Occurrence state.
public static Occurrence CreateOccurrence(IAppointment master, DateTime start, DateTime end)
The master.
startDateTimeThe start.
endDateTimeThe end.
Returns:New occurrence with with Occurrence state.
Determines whether the specified Occurrence is equal to the current Occurrence.
public override bool Equals(object obj)
The Occurrence to compare with the current Occurrence.
Returns:True if the specified Occurrence is equal to the current Occurrence; otherwise, false.
Exceptions:The obj parameter is null.
Overrides:
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Occurrence other)
The object.
Returns:True if the current object is equal to the other parameter;
otherwise, false.
Implements:
Serves as a hash function for a particular type.
Returns a System.String that represents the current System.Object.
public override string ToString()
A System.String that represents the current System.Object.
Overrides: