ClassOccurrence
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
Appointment
Gets the appointment for this occurrence.
Declaration
public IAppointment Appointment { get; }
Property Value
The appointment for this occurrence.
End
Gets the end DateTime of the IDateRange.
Master
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.
Declaration
public IAppointment Master { get; }
Property Value
The master appointment.
OriginalStart
Gets the date of the occurrence this exception is replacing.
Start
Gets the start DateTime of the IDateRange.
State
Gets the recurrence state.
Declaration
public RecurrenceState State { get; }
Property Value
The state.
Methods
CreateException(IAppointment, IAppointment, DateTime)
Creates a new instance of the Occurrence class with Exception state.
Declaration
public static Occurrence CreateException(IAppointment master, IAppointment exception, DateTime originalStart)
Parameters
master
The master.
exception
The exception.
originalStart
The original start.
Returns
New occurrence with with Exception state.
CreateMaster(IAppointment)
Creates a new instance of the Occurrence class with Master state.
Declaration
public static Occurrence CreateMaster(IAppointment master)
Parameters
master
The master.
Returns
CreateOccurrence(IAppointment, DateTime, DateTime)
Creates a new instance of the Occurrence class with Occurrence state.
Declaration
public static Occurrence CreateOccurrence(IAppointment master, DateTime start, DateTime end)
Parameters
master
The master.
start
The start.
end
The end.
Returns
New occurrence with with Occurrence state.
Equals(Occurrence)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Occurrence other)
Parameters
other
The object.
Returns
True if the current object is equal to the other
parameter;
otherwise, false.
Implements
Equals(object)
Determines whether the specified Occurrence is equal to the current Occurrence.
Declaration
public override bool Equals(object obj)
Parameters
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
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
A hash code for the current Occurrence.
Overrides
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
A System.String that represents the current System.Object.
Overrides