New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

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

Constructors

C#
public CalendarViewCollection()
C#
public CalendarViewCollection(ArrayList dateList)
Parameters:dateListArrayList

Properties

Gets or sets the parent(owner) calendar.

C#
public RadCalendar ParentCalendar { get; set; }
Property Value:

The parent(owner) calendar.

Returns a CalendarView object depending on the passed index. Only integer and string indexes are valid.

C#
public virtual CalendarView this[object obj] { get; set; }
Parameters:objobject

Methods

Adds a CalendarView object to the collection of CalendarDays.

C#
public virtual int Add(CalendarView inputItem)
Parameters:inputItemCalendarView

The CalendarView object to add to the collection.

Returns:

int

Adds the elements of the specified collection to the end of the DateTimeCollection.

C#
public virtual void AddRange(CalendarView[] inputItems)
Parameters:inputItemsCalendarView[]

The collection whose RadDate elements should be added to the end of the DateTimeCollection.

Removes all CalendarView objects in the collection of CalendarDays.

C#
public void Clear()

Clones the CalendarViewCollection instance.

C#
public virtual CalendarViewCollection Clone()
Returns:

CalendarViewCollection

Clones the inner ArrayList collection.

C#
public virtual ArrayList CloneInner()
Returns:

ArrayList

Checks whether a specific CalendarView object is in the collection of CalendarDays.

C#
public virtual bool Contains(CalendarView inputItem)
Parameters:inputItemCalendarView

The CalendarView object to search.

Returns:

bool

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.

C#
public virtual void CopyTo(CalendarView[] inputArray, int startCopyIndex)
Parameters:inputArrayCalendarView[]

The one-dimensional CalendarViewCollection that is the destination of the elements copied from the current CalendarViewCollection.

startCopyIndexint

A 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.

C#
public virtual void CopyTo(CalendarView[] inputArray)
Parameters:inputArrayCalendarView[]

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.

C#
public virtual int IndexOf(object inputItem)
Parameters:inputItemobject

The zero-based index, CalendarView object or the date represented by the searched CalendarView object.

Returns:

int

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.

C#
public virtual void Insert(int insertIndex, CalendarView inputItem)
Parameters:insertIndexint

The index after which the CalendarView object is inserted.

inputItemCalendarView

The CalendarView object to insert.

Deletes a CalendarView object from the collection.

C#
public virtual void Remove(CalendarView inputItem)
Parameters:inputItemCalendarView

The CalendarView object to remove.

Deletes the CalendarView object from the collection at the specified index.

C#
public void RemoveAt(int index)
Parameters:indexint

The index in collection at which the CalendarView object will be deleted.

Removes a range of elements from the CalendarViewCollection.

C#
public virtual void RemoveRange(int startIndex, int itemCount)
Parameters:startIndexint

The zero-based starting index of the range of elements to remove.

itemCountint

The number of elements to remove.

Reverses the order of the elements in the entire collection.

C#
public virtual void Reverse()
Exceptions: NotSupportedException

Please refer to Reverse() for details.

Sorts the elements in the entire CalendarViewCollection using the IComparable implementation of each element.

C#
public virtual void Sort()
Exceptions: NotSupportedException

Please refer to Sort() for details.

Sorts the elements in the entire CalendarViewCollection using the specified IComparer interface.

C#
public virtual void Sort(IComparer itemComparer)
Parameters:itemComparerIComparer

The IComparer implementation to use when comparing elements.

-or-

A null reference to use the IComparable implementation of each element.

Exceptions: NotSupportedException

Please refer to Sort(IComparer) for details.

Sorts the elements in the specified range using the specified IComparer interface.

C#
public virtual void Sort(int startIndex, int itemCount, IComparer itemComparer)
Parameters:startIndexint

The zero-based starting index of the range of elements to sort.

itemCountint

The number of elements to sort.

itemComparerIComparer

The IComparer implementation to use when comparing elements.

-or-

A null reference to use the IComparable implementation of each element.

Exceptions: ArgumentException

startIndex and itemCount do not denote a valid range of elements in the CalendarViewCollection.

ArgumentOutOfRangeException

startIndex is less than zero.

-or-

itemCount is less than zero.

NotSupportedException

Please refer to Sort(IComparer) for details.

Copies the elements of CalendarViewCollection to a new Array of CalendarView elements.

C#
public virtual CalendarView[] ToArray()
Returns:

CalendarView[]

A one-dimensional Array of CalendarView elements containing copies of the elements of the CalendarViewCollection.

Please refer to ToArray() for details.