Class Occurrence
Provides class for appointment occurrence.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.ScheduleView
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class Occurrence : IOccurrence, IDateSpan, IEquatable<Occurrence>
Properties
Appointment
Gets the appointment for this occurrence.
Declaration
public IAppointment Appointment { get; }
Property Value
IAppointment
The appointment for this occurrence. |
End
Gets the end System.DateTime of the IDateSpan.
Declaration
public DateTime End { get; }
Property Value
System.DateTime
The end System.DateTime. |
Implements
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
IAppointment
The master appointment. |
OriginalStart
Gets the date of the occurrence this exception is replacing.
Declaration
public DateTime OriginalStart { get; }
Property Value
System.DateTime
|
Start
Gets the start System.DateTime of the IDateSpan.
Declaration
public DateTime Start { get; }
Property Value
System.DateTime
The start System.DateTime. |
Implements
State
Gets the recurrence state.
Declaration
public RecurrenceState State { get; }
Property Value
RecurrenceState
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
IAppointment
master
The master. |
IAppointment
exception
The exception. |
System.DateTime
originalStart
|
Returns
Occurrence
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
IAppointment
master
The master. |
Returns
Occurrence
|
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
IAppointment
master
The master. |
System.DateTime
start
The start. |
System.DateTime
end
The end. |
Returns
Occurrence
New occurrence with with Occurrence state. |
Equals(Object)
Determines whether the specified Occurrence is equal to the current Occurrence.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The Occurrence to compare with the current Occurrence. |
Returns
System.Boolean
True if the specified Occurrence is equal to the current Occurrence; otherwise, false. |
Overrides
Exceptions
System.NullReferenceException
The |
Equals(Occurrence)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Occurrence other)
Parameters
Occurrence
other
The object. |
Returns
System.Boolean
True if the current object is equal to the |
Implements
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
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
System.String
A System.String that represents the current System.Object. |