Edit this page

Telerik.Web.UI.Calendar.Collections.DateTimeCollection

Collection containing dates of type Telerik.Web.UI.RadDate .
Used in http://docs.telerik.com/devtools/aspnet-ajax/controls/calendar/functionality/date-selection Date Selectionfunctionality

Inheritance Hierarchy

  • System.Object
  • System.Collections.CollectionBase
  • Telerik.Web.UI.Calendar.Collections.DateTimeCollection : IStateManager

Properties

Item RadDate

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

ParentCalendar RadCalendar

Gets or sets the parent controls.

Methods

Add

Adds a DateTime object to the collection of CalendarDays.

Parameters

inputItem Telerik.Web.UI.RadDate

The RadDate object to add to the collection.

Returns

System.Int32

AddRange

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

Parameters

inputItems Telerik.Web.UI.RadDate

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

Returns

System.Void

Clear

Removes all DateTime objects in the collection of CalendarDays.

Returns

System.Void

Clone

Clones the instance.

Returns

Telerik.Web.UI.Calendar.Collections.DateTimeCollection

CloneInner

Clones the inner collection.

Returns

System.Collections.ArrayList

Contains

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

Parameters

inputItem Telerik.Web.UI.RadDate

The DateTime object to search.

Returns

System.Boolean True if the DateTime is found, false otherwise.

CopyTo

Copies all elements of the Array to the specified
one-dimensional starting at the specified destination index. The
index is specified as a 32-bit integer.

Parameters

inputArray System.DateTime

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

startCopyIndex System.Int32

A 32-bit integer that represents the index in array at which copying begins.

Returns

System.Void

CopyTo

Copies all elements of the Array to the specified
one-dimensional .

Parameters

inputArray System.DateTime

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

Returns

System.Void

CopyTo

Copies all the elements of the current one-dimensional to the specified
one-dimensional starting at the specified destination index. The
index is specified as a 32-bit integer.

Parameters

array System.Array

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

index System.Int32

A 32-bit integer that represents the index in array at which copying begins.

Returns

System.Void

IndexOf

Returns a zero based index of a DateTime object depending on the passed index.

Parameters

inputItem System.Object

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

Returns

System.Int32 A zero based index of the DateTime object in the collection, or -1 if the DateTime object is not found.

Insert

Adds a DateTime object in the collection at the specified index.

Parameters

insertIndex System.Int32

The index after which the DateTime object is inserted.

inputItem Telerik.Web.UI.RadDate

The DateTime object to insert.

Returns

System.Void

Remove

Deletes a DateTime object from the collection.

Parameters

inputItem Telerik.Web.UI.RadDate

The DateTime object to remove.

Returns

System.Void

RemoveAt

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

Parameters

index System.Int32

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

Returns

System.Void

RemoveRange

Removes a range of elements from the .

Parameters

startIndex System.Int32

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

itemCount System.Int32

The number of elements to remove.

Returns

System.Void

Reverse

Reverses the order of the elements in the entire collection.

Remarks

Please refer to for details.

Returns

System.Void

SelectRange

Selects a range of dates from start to end date.

Parameters

fromDate System.DateTime

The From date.

toDate System.DateTime

The To date.

Returns

System.Void

Sort

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

Remarks

Please refer to for details.

Returns

System.Void

Sort

Sorts the elements in the entire
using the specified interface.

Remarks

Please refer to for details.

Parameters

itemComparer System.Collections.IComparer

The implementation to use when comparing elements.-or-A null reference to use the implementation
of each element.

Returns

System.Void

Sort

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

Remarks

Please refer to for details.

Parameters

startIndex System.Int32

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

itemCount System.Int32

The number of elements to sort.

itemComparer System.Collections.IComparer

The implementation to use when comparing elements.-or-A null reference to use the implementation
of each element.

Returns

System.Void

ToArray

Copies the elements of DateTimeCollection to a new
of elements.

Remarks

Please refer to for details.

Returns

System.DateTime[] A one-dimensional of
elements containing copies of the elements of the .