menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScheduleAppointmentList - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ScheduleAppointmentList

    Maintains collection of IScheduleAppointments that serves as the data for the Schedule Control.

    Inheritance
    System.Object
    ScheduleAppointmentList
    ArrayListAppointmentList
    Implements
    IScheduleAppointmentList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Schedule
    Assembly: Syncfusion.Schedule.Base.dll
    Syntax
    public class ScheduleAppointmentList : IScheduleAppointmentList, IList, ICollection, IEnumerable
    Remarks

    This class is a wrapper class for an ArrayList and implements IComparer which orders the list by the item's StartTime. If two items start at the same time, then the EndTime is used as well to determine the order.

    Constructors

    ScheduleAppointmentList()

    Initializes a new instance of the ScheduleAppointmentList class.

    Declaration
    public ScheduleAppointmentList()

    Properties

    Count

    Gets the number of IScheduleAppointments in this list.

    Declaration
    public virtual int Count { get; }
    Property Value
    Type
    System.Int32

    Item[Int32]

    Gets or sets the i-th IScheduleAppointment in this list.

    Declaration
    public virtual IScheduleAppointment this[int i] { get; set; }
    Parameters
    Type Name Description
    System.Int32 i

    The index to identify the desired ScheduleAppointment.

    Property Value
    Type
    IScheduleAppointment

    List

    Gets or sets list can be serialized in derived classes.

    Declaration
    protected ArrayList List { get; set; }
    Property Value
    Type
    System.Collections.ArrayList

    Methods

    Add(IScheduleAppointment)

    Adds an IScheduleAppointment to this list.

    Declaration
    public virtual void Add(IScheduleAppointment item)
    Parameters
    Type Name Description
    IScheduleAppointment item

    The IScheduleAppointment to be added.

    Contains(IScheduleAppointment)

    Determines whether the collection contains the specified item.

    Declaration
    public bool Contains(IScheduleAppointment item)
    Parameters
    Type Name Description
    IScheduleAppointment item

    A IScheduleAppointment to search for in the collection.

    Returns
    Type Description
    System.Boolean

    true if the collection contains the specified item; otherwise, false.

    Find(Int32)

    Finds the item of the key passed in. Not implemented.

    Declaration
    public virtual IScheduleAppointment Find(int nUniqueID)
    Parameters
    Type Name Description
    System.Int32 nUniqueID

    The unique search key.

    Returns
    Type Description
    IScheduleAppointment

    The found item.

    GetEnumerator()

    Gets the enumerator of the list.

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    The iterator.

    IndexOf(IScheduleAppointment)

    Returns the position of the specified item within this list.

    Declaration
    public virtual int IndexOf(IScheduleAppointment item)
    Parameters
    Type Name Description
    IScheduleAppointment item

    The search item.

    Returns
    Type Description
    System.Int32

    The index in the list of the search item.

    Insert(Int32, IScheduleAppointment)

    Inserts an IScheduleAppointment into this list.

    Declaration
    public virtual void Insert(int index, IScheduleAppointment item)
    Parameters
    Type Name Description
    System.Int32 index

    The position in the list where the item is to be inserted.

    IScheduleAppointment item

    The IScheduleAppointment to be inserted.

    IsAreaAvailable(DateTime, DateTime)

    Determine if any items of this collection overlap the schedule area.

    Declaration
    public virtual bool IsAreaAvailable(DateTime dtStart, DateTime dtEnd)
    Parameters
    Type Name Description
    System.DateTime dtStart

    The start date

    System.DateTime dtEnd

    The end date

    Returns
    Type Description
    System.Boolean

    True, if items overlap schedule area; False otherwise.

    IsAreaAvailable(DateTime, Double)

    Determines if any items overlap the schedule area.

    Declaration
    public virtual bool IsAreaAvailable(DateTime dtStart, double nMinutes)
    Parameters
    Type Name Description
    System.DateTime dtStart

    Start date

    System.Double nMinutes

    Time interval

    Returns
    Type Description
    System.Boolean

    True, if items overlap schedule area; False otherwise.

    IsConflict(IScheduleAppointment)

    Determines whether item has conflict with items of this collection.

    Declaration
    public virtual bool IsConflict(IScheduleAppointment appApp)
    Parameters
    Type Name Description
    IScheduleAppointment appApp

    A IScheduleAppointment

    Returns
    Type Description
    System.Boolean

    True, if the item is in conflict; False, otherwise.

    NewScheduleAppointment()

    Returns a default ScheduleAppointment.

    Declaration
    public virtual IScheduleAppointment NewScheduleAppointment()
    Returns
    Type Description
    IScheduleAppointment

    New ScheduleAppointment.

    NextAreaAvailable(DateTime, Int32)

    Returns the next available slot after date.

    Declaration
    public virtual ScheduleAppointment NextAreaAvailable(DateTime dtStart, int nMinutes)
    Parameters
    Type Name Description
    System.DateTime dtStart

    Start date

    System.Int32 nMinutes

    Time interval

    Returns
    Type Description
    ScheduleAppointment

    Next available slot.

    NextAreaAvailable(DateTime, Int32, Int32)

    Returns the next available slot after date.

    Declaration
    public virtual ScheduleAppointment NextAreaAvailable(DateTime dtStart, int nMinutes, int nTimeStep)
    Parameters
    Type Name Description
    System.DateTime dtStart

    Start date

    System.Int32 nMinutes

    Time interval

    System.Int32 nTimeStep

    Time step in minutes

    Returns
    Type Description
    ScheduleAppointment

    Next available slot.

    NextAreaAvailable(DateTime, Int32, Int32, DateTime, DateTime)

    Returns the next available slot after date.

    Declaration
    public virtual ScheduleAppointment NextAreaAvailable(DateTime dtStart, int nMinutes, int nTimeStep, DateTime dtMinDate, DateTime dtMaxDate)
    Parameters
    Type Name Description
    System.DateTime dtStart

    Start date

    System.Int32 nMinutes

    Time interval

    System.Int32 nTimeStep

    Time step in minutes

    System.DateTime dtMinDate

    Schedule min date

    System.DateTime dtMaxDate

    Schedule max date

    Returns
    Type Description
    ScheduleAppointment

    Next available slot.

    NextAreaAvailable(DateTime, Int32, Int32, DateTime, DateTime, Int32, Int32)

    Returns the next available slot after date.

    Declaration
    public virtual ScheduleAppointment NextAreaAvailable(DateTime dtStart, int nMinutes, int nTimeStep, DateTime dtMinDate, DateTime dtMaxDate, int nDayStartHour, int nDayEndHour)
    Parameters
    Type Name Description
    System.DateTime dtStart

    Start date

    System.Int32 nMinutes

    Time interval

    System.Int32 nTimeStep

    Time step in minutes

    System.DateTime dtMinDate

    Schedule min date

    System.DateTime dtMaxDate

    Schedule max date

    System.Int32 nDayStartHour

    Schedule day start hour

    System.Int32 nDayEndHour

    Schedule day end hour

    Returns
    Type Description
    ScheduleAppointment

    Next available slot.

    Remove(IScheduleAppointment)

    Removes an IScheduleAppointment from this list.

    Declaration
    public virtual void Remove(IScheduleAppointment item)
    Parameters
    Type Name Description
    IScheduleAppointment item

    The IScheduleAppointment to be removed.

    RemoveAt(Int32)

    Removes an IScheduleAppointment from this list.

    Declaration
    public virtual void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The position of the item to be removed.

    SortStartTime()

    Sorts this list on the IScheduleAppointment.StartTime property.

    Declaration
    public virtual void SortStartTime()

    Explicit Interface Implementations

    ICollection.CopyTo(Array, Int32)

    Copies the list to array collection.

    Declaration
    void ICollection.CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array

    The destination array.

    System.Int32 index

    The starting index for copying from list.

    ICollection.Count

    Gets the number of appointments.

    Declaration
    int ICollection.Count { get; }
    Returns
    Type
    System.Int32

    ICollection.IsSynchronized

    Gets a value indicating whether collection is synchronized.

    Declaration
    bool ICollection.IsSynchronized { get; }
    Returns
    Type
    System.Boolean

    ICollection.SyncRoot

    Gets an object that can be used to synchronize access to collection.

    Declaration
    object ICollection.SyncRoot { get; }
    Returns
    Type
    System.Object

    IList.Add(Object)

    Adds the value to the list.

    Declaration
    int IList.Add(object value)
    Parameters
    Type Name Description
    System.Object value

    The schedule appointment item.

    Returns
    Type Description
    System.Int32

    Index of the item.

    IList.Clear()

    Clears the collection.

    Declaration
    void IList.Clear()

    IList.Contains(Object)

    Returns a value indicating whether collection contains the specified item.

    Declaration
    bool IList.Contains(object value)
    Parameters
    Type Name Description
    System.Object value

    Object of the schedule appointment item.

    Returns
    Type Description
    System.Boolean

    True if collection has item otherwise false.

    IList.get_Item(Int32)

    Declaration
    object IList.get_Item(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Object

    IList.IndexOf(Object)

    Returns the Zero-based index of the first occurrence of the specified item.

    Declaration
    int IList.IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value

    Object of the schedule appointment item.

    Returns
    Type Description
    System.Int32

    Index of the item.

    IList.Insert(Int32, Object)

    Inserts the value to the list at specified position.

    Declaration
    void IList.Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

    Index value to insert item.

    System.Object value

    The schedule appointment item.

    IList.IsFixedSize

    Gets a value indicating whether collection has fixed size.

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type
    System.Boolean

    IList.IsReadOnly

    Gets a value indicating whether collection is read only.

    Declaration
    bool IList.IsReadOnly { get; }
    Returns
    Type
    System.Boolean

    IList.Item[Int32]

    Gets the appointment from list.

    Declaration
    object IList.this[] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    Index of the appointment item.

    Returns
    Type Description
    System.Object

    The IScheduleAppointment.

    IList.Remove(Object)

    Removes the value to the list.

    Declaration
    void IList.Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    The schedule appointment item.

    IList.RemoveAt(Int32)

    Removes the value to the list at specified position.

    Declaration
    void IList.RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index value of remove item.

    IList.set_Item(Int32, Object)

    Declaration
    void IList.set_Item(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    Implements

    IScheduleAppointmentList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved