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

Summary description for CalendarDayCollection. See Special Days for more information.

Definition

Constructors

CalendarDayCollection constructor. Used for Special Days functionality

C#
public CalendarDayCollection()

CalendarDayCollection constructor. Used for Special Days functionality

C#
public CalendarDayCollection(ArrayList dateList, RadCalendar parent)
Parameters:dateListArrayList

ArrayList days collection

parentRadCalendar

Parent RadCalendar control

CalendarDayCollection constructor. Used for Special Days functionality

C#
public CalendarDayCollection(RadCalendar parent)
Parameters:parentRadCalendar

Parent RadCalendar object

Properties

Gets or sets the parent RadCalendar controls.

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

The parent RadCalendar controls.

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

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

Methods

Adds a RadCalendarDay object to the collection of CalendarDays.

C#
public virtual int Add(RadCalendarDay inputItem)
Parameters:inputItemRadCalendarDay

The RadCalendarDay object to add to the collection.

Returns:

int

Adds the RadCalendarDay templates of the specified collection to the end of the CalendarDayCollection.

C#
public virtual void AddRange(RadCalendarDay[] inputItems)
Parameters:inputItemsRadCalendarDay[]

The RadCalendarDay templates.

Removes all RadCalendarDay objects in the collection of CalendarDays.

C#
public void Clear()

Clones CalendarDayCollection instance.

C#
public virtual CalendarDayCollection Clone()
Returns:

CalendarDayCollection

Clones the inner ArrayList.

C#
public virtual ArrayList CloneInner()
Returns:

ArrayList

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

C#
public virtual bool Contains(RadCalendarDay inputItem)
Parameters:inputItemRadCalendarDay

The RadCalendarDay object to search.

Returns:

bool

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.

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

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

startCopyIndexint

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

C#
public virtual void CopyTo(RadCalendarDay[] inputArray)
Parameters:inputArrayRadCalendarDay[]

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.

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

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

Returns:

int

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.

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

The index after which the RadCalendarDay object is inserted.

inputItemRadCalendarDay

The RadCalendarDay object to insert.

Deletes a RadCalendarDay object from the collection.

C#
public virtual void Remove(RadCalendarDay inputItem)
Parameters:inputItemRadCalendarDay

The RadCalendarDay object to remove.

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

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

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

Removes a range of elements from the CalendarDayCollection.

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

ArgumentOutOfRangeException

startIndex is less than zero.

-or-

itemCount is less than zero.

NotSupportedException

Please refer to Sort() for details.

Copies the elements of CalendarDayCollection to a new Array of RadCalendarDay elements.

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

RadCalendarDay[]

A one-dimensional Array of RadCalendarDay elements containing copies of the elements of the CalendarDayCollection.

Please refer to ToArray() for details.