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

Extension methods for IAppointment interface.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public static class AppointmentExtensions

Inheritance: objectAppointmentExtensions

Methods

Gets the occurrences from the given range.

C#
public static IEnumerable<Occurrence> GetOccurences(this IEnumerable<IAppointment> source, IDateSpan span)
Parameters:sourceIEnumerable<IAppointment>spanIDateSpanReturns:

IEnumerable<Occurrence>

Gets occurrences of the appointment. Generate the appointment's occurrences for a given interval.

C#
public static IList<Occurrence> GetOccurrences(this IAppointment appointment, DateTime from, DateTime to)
Parameters:appointmentIAppointment

The appointment.

fromDateTime

From date.

toDateTime

To date.

Returns:

IList<Occurrence>

Gets the occurrences without exceptions from the given range.

C#
public static IList<Occurrence> GetOccurrencesWithoutExceptionsFromDateTimeRange(this IAppointment appointment, DateTime from, DateTime to)
Parameters:appointmentIAppointment

The appointment.

fromDateTime

From.

toDateTime

To.

Returns:

IList<Occurrence>

Determines whether the specified appointment is an all-day appointment.

C#
public static bool IsAllDay(this IAppointment appointment)
Parameters:appointmentIAppointmentReturns:

bool