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
public CalendarDayCollection()
public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days)
Properties
public RadCalendar Calendar { get; set; }
Gets the total number of RadCalendarDay objects in the collection.
public virtual int Count { get; }
Implements:
Gets or sets the RadCalendarDay at the specified indexed location in the collection.
public virtual RadCalendarDay this[int index] { get; set; }
The indexed location of the RadCalendarDay in the collection.
Property Value:The RadCalendarDay at the specified indexed location in the collection.
Gets or sets a RadCalendarDay object depending on the passed key. Only integer and string indexes are valid.
Methods
Adds a DateTime object to the end of the CalendarDayCollection.
public virtual RadCalendarDay Add(DateTime day)
The DateTime object to add to the collection.
Returns:Adds a previously created RadCalendarDay object to the end of the CalendarDayCollection.
public virtual RadCalendarDay Add(RadCalendarDay day)
The RadCalendarDay object to add to the collection.
Returns:Adds an collection of previously created RadCalendarDay objects to the collection.
public virtual CalendarDayCollection AddRange(CalendarDayCollection days)
An array of RadCalendarDay objects representing the views to add to the collection.
Returns:Adds a collection of date time values to the collection.
public virtual CalendarDayCollection AddRange(IEnumerable<DateTime> days)
An IEnumerable of DateTime objects to add to the collection.
Returns:Removes all RadCalendarDay objects in the collection of CalendarDays.
public void Clear()
Creates a new CalendarDayCollection object that is a copy of the current instance.
public virtual CalendarDayCollection Clone()
A new CalendarDayCollection object that is a copy of this instance.
Finds the RadCalendarDay with specified key, optionally searching child days.
public RadCalendarDay[] Find(DateTime 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.
Returns an enumerator that can be used to iterate through the RadCalendarDay collection.
public virtual IEnumerator<RadCalendarDay> GetEnumerator()
IEnumerator<RadCalendarDay>
An IEnumerator that represents the RadCalendarDay collection.
Returns the index of the specified RadCalendarDay object in the collection.
public virtual int IndexOf(RadCalendarDay day)
The RadCalendarDay object to locate in the collection.
Returns:The zero-based index of the item found in the CalendarDayCollection; otherwise, -1.
Inserts an existing RadCalendarDay object into the CalendarDayCollection at the specified location.
public virtual void Insert(int index, RadCalendarDay day)
The indexed location within the collection to insert the RadCalendarDay object.
dayRadCalendarDayThe RadCalendarDay object to insert into the collection.
Removes the specified RadCalendarDay object from the CalendarDayCollection.
public virtual void Remove(RadCalendarDay day)
The RadCalendarDay object to remove.
Copies the elements of CalendarDayCollection to a new Array of RadCalendarDay elements.
public virtual RadCalendarDay[] ToArray()
A one-dimensional Array of RadCalendarDay elements containing copies of the elements of the CalendarDayCollection.
Please refer to ToArray() for details.
protected virtual void UpdateVisuals()