Class Appointment
Represents a concrete implementation of an appointment in the scheduler, extending the base Event class. Provides functionality for creating, managing, and manipulating calendar appointments with support for recurring patterns, exceptions, and various appointment properties such as status, location, and time ranges.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class Appointment : Event, IEvent, IDataBoundItem, IRemindObject, INotifyPropertyChanged
Constructors
Appointment()
Appointment(DateTime, DateTime)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, DateTime end)
Parameters
System.DateTime
start
The start of the new appointment. |
System.DateTime
end
The end of the new appointment. |
Appointment(DateTime, DateTime, String)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, DateTime end, string summary)
Parameters
System.DateTime
start
The start of the new appointment. |
System.DateTime
end
The end of the new appointment. |
System.String
summary
The summary of the new appointment. |
Appointment(DateTime, DateTime, String, String)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, DateTime end, string summary, string description)
Parameters
System.DateTime
start
The start of the new appointment. |
System.DateTime
end
The end of the new appointment. |
System.String
summary
The summary of the new appointment. |
System.String
description
The description of the new appointment. |
Appointment(DateTime, DateTime, String, String, String)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, DateTime end, string summary, string description, string location)
Parameters
System.DateTime
start
The start of the new appointment. |
System.DateTime
end
The end of the new appointment. |
System.String
summary
The summary of the new appointment. |
System.String
description
The description of the new appointment. |
System.String
location
The location of the new appointment. |
Appointment(DateTime, TimeSpan)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, TimeSpan duration)
Parameters
System.DateTime
start
The start of the new appointment. |
System.TimeSpan
duration
The duration of the new appointment. |
Appointment(DateTime, TimeSpan, String)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, TimeSpan duration, string summary)
Parameters
System.DateTime
start
The start of the new appointment. |
System.TimeSpan
duration
The duration of the new appointment. |
System.String
summary
The summary of the new appointment. |
Appointment(DateTime, TimeSpan, String, String)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, TimeSpan duration, string summary, string description)
Parameters
System.DateTime
start
The start of the new appointment. |
System.TimeSpan
duration
The duration of the new appointment. |
System.String
summary
The summary of the new appointment. |
System.String
description
The description of the new appointment. |
Appointment(DateTime, TimeSpan, String, String, String)
Initializes a new instance of the Appointment class.
Declaration
public Appointment(DateTime start, TimeSpan duration, string summary, string description, string location)
Parameters
System.DateTime
start
The start of the new appointment. |
System.TimeSpan
duration
The duration of the new appointment. |
System.String
summary
The summary of the new appointment. |
System.String
description
The description of the new appointment. |
System.String
location
The location of the new appointment. |
Properties
HasExceptions
Gets a value indicating whether this appointment has exception occurrences or exception dates defined in its recurrence rule.
Declaration
public virtual bool HasExceptions { get; }
Property Value
System.Boolean
|
HasOccurrences
Gets a value indicating whether this appointment instance has recurring occurrences based on its recurrence rule.
Declaration
public virtual bool HasOccurrences { get; }
Property Value
System.Boolean
|
Methods
CreateOccurrenceInstance()
Creates a new instance of an Appointment to represent an occurrence of this recurring appointment. This method is called internally when generating individual occurrences from a recurring appointment pattern.
Declaration
protected override Event CreateOccurrenceInstance()
Returns
Event
A new Appointment instance configured as an occurrence. |
Overrides
ToString()
Returns a string representation of the appointment containing its summary and time range information. The format includes the appointment summary followed by the start and end times in parentheses.
Declaration
public override string ToString()
Returns
System.String
A formatted string containing the appointment's summary, start time, and end time. |