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.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class Appointment : Event, IEvent, IDataBoundItem, IRemindObject, INotifyPropertyChanged

Inheritance: objectEventAppointment

Implements: IDataBoundItemIEventINotifyPropertyChangedIRemindObject

Inherited Members Event.occurrenceEnumeratorEvent.isAllDayEvent.GetOccurrences(DateTime, DateTime)Event.CreateOccurrence(DateTime)Event.AddOccurrenceException(IEvent, bool)Event.CreateOccurrence(DateTime, bool)Event.SuspendNotifications()Event.ResumeNotifications()Event.OnPropertyChanged(string)Event.StartEvent.EndEvent.DurationEvent.SummaryEvent.DescriptionEvent.RecurrenceIdEvent.LocationEvent.ToolTipTextEvent.VisibleEvent.AllowDeleteEvent.AllowEditEvent.ResourceIdEvent.ResourceIdsEvent.UniqueIdEvent.BackgroundIdEvent.StatusIdEvent.RecurrenceRuleEvent.OccurrencesEvent.ExceptionsEvent.IsViewCalculatedEvent.CultureInfoProviderEvent.MasterEventEvent.AllDayEvent.SnoozedAppointmentsEvent.DismissedAppointmentsEvent.ReminderAppointmentsEvent.IsSuspendedEvent.DataItemEvent.RemindIdEvent.StartDateTimeEvent.SubjectEvent.DismissedEvent.SnoozedEvent.ReminderEvent.PropertyChanged

Constructors

Appointment()

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment()

Appointment(DateTime, DateTime)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, DateTime end)

Parameters

start

DateTime

The start of the new appointment.

end

DateTime

The end of the new appointment.

Appointment(DateTime, DateTime, string)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, DateTime end, string summary)

Parameters

start

DateTime

The start of the new appointment.

end

DateTime

The end of the new appointment.

summary

string

The summary of the new appointment.

Appointment(DateTime, DateTime, string, string)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, DateTime end, string summary, string description)

Parameters

start

DateTime

The start of the new appointment.

end

DateTime

The end of the new appointment.

summary

string

The summary of the new appointment.

description

string

The description of the new appointment.

Appointment(DateTime, DateTime, string, string, string)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, DateTime end, string summary, string description, string location)

Parameters

start

DateTime

The start of the new appointment.

end

DateTime

The end of the new appointment.

summary

string

The summary of the new appointment.

description

string

The description of the new appointment.

location

string

The location of the new appointment.

Appointment(DateTime, TimeSpan)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, TimeSpan duration)

Parameters

start

DateTime

The start of the new appointment.

duration

TimeSpan

The duration of the new appointment.

Appointment(DateTime, TimeSpan, string)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, TimeSpan duration, string summary)

Parameters

start

DateTime

The start of the new appointment.

duration

TimeSpan

The duration of the new appointment.

summary

string

The summary of the new appointment.

Appointment(DateTime, TimeSpan, string, string)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, TimeSpan duration, string summary, string description)

Parameters

start

DateTime

The start of the new appointment.

duration

TimeSpan

The duration of the new appointment.

summary

string

The summary of the new appointment.

description

string

The description of the new appointment.

Appointment(DateTime, TimeSpan, string, string, string)

Initializes a new instance of the Appointment class.

Declaration

cs-api-definition
public Appointment(DateTime start, TimeSpan duration, string summary, string description, string location)

Parameters

start

DateTime

The start of the new appointment.

duration

TimeSpan

The duration of the new appointment.

summary

string

The summary of the new appointment.

description

string

The description of the new appointment.

location

string

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

cs-api-definition
public virtual bool HasExceptions { get; }

Property Value

bool

HasOccurrences

Gets a value indicating whether this appointment instance has recurring occurrences based on its recurrence rule.

Declaration

cs-api-definition
public virtual bool HasOccurrences { get; }

Property Value

bool

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

cs-api-definition
protected override Event CreateOccurrenceInstance()

Returns

Event

A new Appointment instance configured as an occurrence.

Overrides Event.CreateOccurrenceInstance()

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

cs-api-definition
public override string ToString()

Returns

string

A formatted string containing the appointment's summary, start time, and end time.

Overrides object.ToString()