CalendarView collection. See Multi-View Mode for general information aboout this mode. You can also find code example in the and Title Settings topic.
Definition
Namespace:Telerik.Web.UI.Calendar.Collections
Assembly:Telerik.Web.UI.dll
Syntax:
public class CalendarViewCollection : CollectionBase, IList, ICollection, IEnumerable, IStateManager
Inheritance: objectCollectionBaseCalendarViewCollection
Implements:
Inherited Members
Constructors
public CalendarViewCollection()
Properties
Gets or sets the parent(owner) calendar.
public RadCalendar ParentCalendar { get; set; }
The parent(owner) calendar.
Returns a CalendarView object depending on the passed index. Only integer and string indexes are valid.
Methods
Adds a CalendarView object to the collection of CalendarDays.
public virtual int Add(CalendarView inputItem)
The CalendarView object to add to the collection.
Returns:Adds the elements of the specified collection to the end of the DateTimeCollection.
public virtual void AddRange(CalendarView[] inputItems)
The collection whose RadDate elements should be added to the end of the DateTimeCollection.
Removes all CalendarView objects in the collection of CalendarDays.
public void Clear()
Clones the CalendarViewCollection instance.
Checks whether a specific CalendarView object is in the collection of CalendarDays.
public virtual bool Contains(CalendarView inputItem)
The CalendarView object to search.
Returns:True if the CalendarView is found, false otherwise.
Copies all CalendarView elements of the CalendarViewCollection Array to the specified one-dimensional CalendarViewCollection starting at the specified destination index. The index is specified as a 32-bit integer.
public virtual void CopyTo(CalendarView[] inputArray, int startCopyIndex)
The one-dimensional CalendarViewCollection that is the destination of the elements copied from the current CalendarViewCollection.
startCopyIndexintA 32-bit integer that represents the index in array at which copying begins.
Copies all CalendarView elements of the CalendarView Array to the specified one-dimensional CalendarViewCollection.
public virtual void CopyTo(CalendarView[] inputArray)
The one-dimensional CalendarViewCollection that is the destination of the elements copied from the current CalendarViewCollection.
Returns a zero based index of a CalendarView object depending on the passed index.
public virtual int IndexOf(object inputItem)
The zero-based index, CalendarView object or the date represented by the searched CalendarView object.
Returns:A zero based index of the CalendarView object in the collection, or -1 if the CalendarView object is not found.
Adds a CalendarView object in the collection at the specified index.
public virtual void Insert(int insertIndex, CalendarView inputItem)
The index after which the CalendarView object is inserted.
inputItemCalendarViewThe CalendarView object to insert.
Deletes a CalendarView object from the collection.
public virtual void Remove(CalendarView inputItem)
The CalendarView object to remove.
Deletes the CalendarView object from the collection at the specified index.
public void RemoveAt(int index)
The index in collection at which the CalendarView object will be deleted.
Removes a range of elements from the CalendarViewCollection.
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 CalendarViewCollection using the IComparable implementation of each element.
Sorts the elements in the entire CalendarViewCollection 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 CalendarViewCollection.
startIndex is less than zero.
-or-
itemCount is less than zero.
Copies the elements of CalendarViewCollection to a new Array of CalendarView elements.
public virtual CalendarView[] ToArray()
A one-dimensional Array of CalendarView elements containing copies of the elements of the CalendarViewCollection.
Please refer to ToArray() for details.