New to Telerik UI for WinFormsStart a free 30-day trial

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

Constructors

Initializes a new instance of the Appointment class.

C#
public Appointment()

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, DateTime end, string summary, string description, string location)
Parameters:startDateTime

The start of the new appointment.

endDateTime

The end of the new appointment.

summarystring

The summary of the new appointment.

descriptionstring

The description of the new appointment.

locationstring

The location of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, DateTime end, string summary, string description)
Parameters:startDateTime

The start of the new appointment.

endDateTime

The end of the new appointment.

summarystring

The summary of the new appointment.

descriptionstring

The description of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, DateTime end, string summary)
Parameters:startDateTime

The start of the new appointment.

endDateTime

The end of the new appointment.

summarystring

The summary of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, DateTime end)
Parameters:startDateTime

The start of the new appointment.

endDateTime

The end of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, TimeSpan duration, string summary, string description, string location)
Parameters:startDateTime

The start of the new appointment.

durationTimeSpan

The duration of the new appointment.

summarystring

The summary of the new appointment.

descriptionstring

The description of the new appointment.

locationstring

The location of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, TimeSpan duration, string summary, string description)
Parameters:startDateTime

The start of the new appointment.

durationTimeSpan

The duration of the new appointment.

summarystring

The summary of the new appointment.

descriptionstring

The description of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, TimeSpan duration, string summary)
Parameters:startDateTime

The start of the new appointment.

durationTimeSpan

The duration of the new appointment.

summarystring

The summary of the new appointment.

Initializes a new instance of the Appointment class.

C#
public Appointment(DateTime start, TimeSpan duration)
Parameters:startDateTime

The start of the new appointment.

durationTimeSpan

The duration of the new appointment.

Properties

Gets a value indicating whether this appointment has exception occurrences or exception dates defined in its recurrence rule.

C#
public virtual bool HasExceptions { get; }

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

C#
public virtual bool HasOccurrences { get; }

Methods

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.

C#
protected override Event CreateOccurrenceInstance()
Returns:

Event

A new Appointment instance configured as an occurrence.

Overrides: Event.CreateOccurrenceInstance()

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.

C#
public override string ToString()
Returns:

string

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

Overrides: object.ToString()