ClassDateTimeCollection
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DateTimeCollection : IList, ICollection, IEnumerable, ICloneable
Inheritance: objectDateTimeCollection
Implements:
Constructors
DateTimeCollection()
Declaration
public DateTimeCollection()
DateTimeCollection(RadCalendar)
Declaration
public DateTimeCollection(RadCalendar calendar)
Parameters
calendar
Properties
Count
Gets the total number of DateTime objects in the collection.
this[int]
Gets or sets the DateTime at the specified indexed location in the collection.
Methods
Add(DateTime)
Adds a previously created DateTime object to the end of the DateTimeCollection.
AddRange(DateTime[])
Adds an array of previously created DateTime objects to the collection.
Declaration
public virtual void AddRange(DateTime[] inputItems)
Parameters
inputItems
DateTime[]
An array of DateTime objects representing the dates to add to the collection.
BeginUpdate()
Declaration
public void BeginUpdate()
CanAdd(DateTime)
CanAdd method verify whether the date can be add to the collection.
Clear()
Removes all DateTime objects from the collection.
Declaration
public void Clear()
Clone()
Creates a new DateTimeCollection object that is a copy of the current instance.
Declaration
public virtual DateTimeCollection Clone()
Returns
A new DateTimeCollection object that is a copy of this instance.
Contains(DateTime)
Determines whether the specified DateTime object is a member of the collection.
EndUpdate()
Declaration
public void EndUpdate()
GetEnumerator()
Returns an enumerator that can be used to iterate through the DateTime collection.
Declaration
public virtual IEnumerator<DateTime> GetEnumerator()
Returns
IEnumerator<DateTime>
An IEnumerator that represents the DateTime collection.
IndexOf(DateTime)
Returns the index of the specified DateTime object in the collection.
Insert(int, DateTime)
Inserts an existing DateTime object into the DateTimeCollection at the specified location.
Remove(DateTime)
Removes the specified DateTime object from the DateTimeCollection.
Declaration
public virtual void Remove(DateTime date)
Parameters
date
The DateTime object to remove.
RemoveRange(DateTime[])
Declaration
public virtual void RemoveRange(DateTime[] dates)
Parameters
dates
DateTime[]
RemoveRange(int, int)
Removes a range of DateTime elements from the DateTimeCollection.
ToArray()
Copies the elements of the DateTime collection to a new DateTime array.
Declaration
public virtual DateTime[] ToArray()
Returns
DateTime[]
A DateTime array
UpdateOwnerVisuals()
Declaration
protected void UpdateOwnerVisuals()