ClassCalendarDayCollection
Summary description for CalendarDayCollection.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalendarDayCollection : IList, ICollection, IEnumerable, ICloneable
Inheritance: objectCalendarDayCollection
Implements:
Constructors
CalendarDayCollection()
Declaration
public CalendarDayCollection()
CalendarDayCollection(RadCalendar, CalendarDayCollection)
Declaration
public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days)
Parameters
owner
days
Properties
Count
Gets the total number of RadCalendarDay objects in the collection.
this[int]
Gets or sets the RadCalendarDay at the specified indexed location in the collection.
Declaration
public virtual RadCalendarDay this[int index] { get; set; }
Parameters
index
The indexed location of the RadCalendarDay in the collection.
Property Value
The RadCalendarDay at the specified indexed location in the collection.
this[object]
Gets or sets a RadCalendarDay object depending on the passed key. Only integer and string indexes are valid.
Declaration
public virtual RadCalendarDay this[object obj] { get; set; }
Parameters
obj
Property Value
Methods
Add(DateTime)
Adds a DateTime object to the end of the CalendarDayCollection.
Declaration
public virtual RadCalendarDay Add(DateTime day)
Parameters
day
The DateTime object to add to the collection.
Returns
Add(RadCalendarDay)
Adds a previously created RadCalendarDay object to the end of the CalendarDayCollection.
Declaration
public virtual RadCalendarDay Add(RadCalendarDay day)
Parameters
day
The RadCalendarDay object to add to the collection.
Returns
AddRange(CalendarDayCollection)
Adds an collection of previously created RadCalendarDay objects to the collection.
Declaration
public virtual CalendarDayCollection AddRange(CalendarDayCollection days)
Parameters
days
An array of RadCalendarDay objects representing the views to add to the collection.
Returns
AddRange(IEnumerable<DateTime>)
Adds a collection of date time values to the collection.
Declaration
public virtual CalendarDayCollection AddRange(IEnumerable<DateTime> days)
Parameters
days
IEnumerable<DateTime>
An IEnumerable of DateTime objects to add to the collection.
Returns
Clear()
Removes all RadCalendarDay objects in the collection of CalendarDays.
Declaration
public void Clear()
Clone()
Creates a new CalendarDayCollection object that is a copy of the current instance.
Declaration
public virtual CalendarDayCollection Clone()
Returns
A new CalendarDayCollection object that is a copy of this instance.
Find(DateTime)
Finds the RadCalendarDay with specified key, optionally searching child days.
Declaration
public RadCalendarDay[] Find(DateTime key)
Parameters
key
The date bound to a particular RadCalendarDay object to search for.
Returns
An array of RadCalendarDay objects whose Date property matches the specified key.
GetEnumerator()
Returns an enumerator that can be used to iterate through the RadCalendarDay collection.
Declaration
public virtual IEnumerator<RadCalendarDay> GetEnumerator()
Returns
IEnumerator<RadCalendarDay>
An IEnumerator that represents the RadCalendarDay collection.
IndexOf(RadCalendarDay)
Returns the index of the specified RadCalendarDay object in the collection.
Declaration
public virtual int IndexOf(RadCalendarDay day)
Parameters
day
The RadCalendarDay object to locate in the collection.
Returns
The zero-based index of the item found in the CalendarDayCollection; otherwise, -1.
Insert(int, RadCalendarDay)
Inserts an existing RadCalendarDay object into the CalendarDayCollection at the specified location.
Declaration
public virtual void Insert(int index, RadCalendarDay day)
Parameters
index
The indexed location within the collection to insert the RadCalendarDay object.
day
The RadCalendarDay object to insert into the collection.
Remove(RadCalendarDay)
Removes the specified RadCalendarDay object from the CalendarDayCollection.
Declaration
public virtual void Remove(RadCalendarDay day)
Parameters
day
The RadCalendarDay object to remove.
ToArray()
Copies the elements of CalendarDayCollection to a new Array of RadCalendarDay elements.
Declaration
public virtual RadCalendarDay[] ToArray()
Returns
A one-dimensional Array of RadCalendarDay elements containing copies of the elements of the CalendarDayCollection.
Remarks
Please refer to ToArray() for details.
UpdateOwnerShip(RadCalendarDay)
Declaration
protected virtual void UpdateOwnerShip(RadCalendarDay day)
Parameters
day
UpdateVisuals()
Declaration
protected virtual void UpdateVisuals()