Summary description for CalendarDayCollection. See Special Days for more information.
Definition
Namespace:Telerik.Web.UI.Calendar.Collections
Assembly:Telerik.Web.UI.dll
Syntax:
public class CalendarDayCollection : CollectionBase, IList, ICollection, IEnumerable, IStateManager
Inheritance: objectCollectionBaseCalendarDayCollection
Implements:
Inherited Members
Constructors
CalendarDayCollection constructor. Used for Special Days functionality
public CalendarDayCollection()
CalendarDayCollection constructor. Used for Special Days functionality
public CalendarDayCollection(ArrayList dateList, RadCalendar parent)
ArrayList days collection
parentRadCalendarParent RadCalendar control
CalendarDayCollection constructor. Used for Special Days functionality
public CalendarDayCollection(RadCalendar parent)
Parent RadCalendar object
Properties
Gets or sets the parent RadCalendar controls.
Returns a RadCalendarDay object depending on the passed index. Only integer and string indexes are valid.
Methods
Adds a RadCalendarDay object to the collection of CalendarDays.
public virtual int Add(RadCalendarDay inputItem)
The RadCalendarDay object to add to the collection.
Returns:Adds the RadCalendarDay templates of the specified collection to the end of the CalendarDayCollection.
public virtual void AddRange(RadCalendarDay[] inputItems)
The RadCalendarDay templates.
Removes all RadCalendarDay objects in the collection of CalendarDays.
public void Clear()
Clones CalendarDayCollection instance.
Checks whether a specific RadCalendarDay object is in the collection of CalendarDays.
public virtual bool Contains(RadCalendarDay inputItem)
The RadCalendarDay object to search.
Returns:True if the RadCalendarDay is found, false otherwise.
Copies all RadCalendarDay elements of the CalendarDayCollection Array to the specified one-dimensional CalendarDayCollection starting at the specified destination index. The index is specified as a 32-bit integer.
public virtual void CopyTo(RadCalendarDay[] inputArray, int startCopyIndex)
The one-dimensional CalendarDayCollection that is the destination of the elements copied from the current CalendarDayCollection.
startCopyIndexintA 32-bit integer that represents the index in array at which copying begins.
Copies all RadCalendarDay elements of the RadCalendarDay Array to the specified one-dimensional CalendarDayCollection.
public virtual void CopyTo(RadCalendarDay[] inputArray)
The one-dimensional CalendarDayCollection that is the destination of the elements copied from the current CalendarDayCollection.
Returns a zero based index of a RadCalendarDay object depending on the passed index.
public virtual int IndexOf(object inputItem)
The zero-based index, RadCalendarDay object or the date represented by the searched RadCalendarDay object.
Returns:A zero based index of the RadCalendarDay object in the collection, or -1 if the RadCalendarDay object is not found.
Adds a RadCalendarDay object in the collection at the specified index.
public virtual void Insert(int insertIndex, RadCalendarDay inputItem)
The index after which the RadCalendarDay object is inserted.
inputItemRadCalendarDayThe RadCalendarDay object to insert.
Deletes a RadCalendarDay object from the collection.
public virtual void Remove(RadCalendarDay inputItem)
The RadCalendarDay object to remove.
Deletes the RadCalendarDay object from the collection at the specified index.
public void RemoveAt(int index)
The index in collection at which the RadCalendarDay object will be deleted.
Removes a range of elements from the CalendarDayCollection.
Reverses the order of the elements in the entire collection.
public virtual void Reverse()
Please refer to Reverse() for details.
Sorts the elements in the entire CalendarDayCollection using the IComparable implementation of each element.
Sorts the elements in the entire CalendarDayCollection using the specified IComparer interface.
public virtual void Sort(IComparer itemComparer)
The IComparer implementation to use when comparing elements.
-or-
A null reference to use the IComparable implementation of each element.
Exceptions: NotSupportedExceptionSorts the elements in the specified range using the specified IComparer interface.
public virtual void Sort(int startIndex, int itemCount, IComparer itemComparer)
The zero-based starting index of the range of elements to sort.
itemCountintThe number of elements to sort.
itemComparerIComparerThe IComparer implementation to use when comparing elements.
-or-
A null reference to use the IComparable implementation of each element.
Exceptions: ArgumentExceptionstartIndex and itemCount do not denote a
valid range of elements in the CalendarDayCollection.
startIndex is less than zero.
-or-
itemCount is less than zero.
Please refer to Sort() for details.
Copies the elements of CalendarDayCollection to a new Array of RadCalendarDay elements.
public virtual RadCalendarDay[] ToArray()
A one-dimensional Array of RadCalendarDay elements containing copies of the elements of the CalendarDayCollection.
Please refer to ToArray() for details.