Class CalendarDayCollection
Summary description for CalendarDayCollection.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class CalendarDayCollection : IEnumerable<RadCalendarDay>, IList, ICollection, IEnumerable, ICloneable
Constructors
CalendarDayCollection()
Declaration
public CalendarDayCollection()
CalendarDayCollection(RadCalendar, CalendarDayCollection)
Declaration
public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days)
Parameters
Rad
|
Calendar
|
Properties
Calendar
Count
Gets the total number of RadCalendarDay objects in the collection.
Declaration
public virtual int Count { get; }
Property Value
System.
|
Implements
Item[Int32]
Gets or sets the RadCalendarDay at the specified indexed location in the collection.
Declaration
public virtual RadCalendarDay this[int index] { get; set; }
Parameters
System. The indexed location of the RadCalendarDay in the collection. |
Property Value
Rad The RadCalendarDay at the specified indexed location in the collection. |
Item[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
System.
|
Property Value
Methods
Add(DateTime)
Adds a DateTime object to the end of the CalendarDayCollection.
Declaration
public virtual RadCalendarDay Add(DateTime day)
Parameters
System. 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
Rad The RadCalendarDay object 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
System. An IEnumerable of DateTime objects 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
Calendar An array of RadCalendarDay objects representing the views 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
Calendar 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
System. The date bound to a particular RadCalendarDay object to search for. |
Returns
Rad 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
System. An IEnumerator that represents the RadCalendarDay collection. |
Implements
IndexOf(RadCalendarDay)
Returns the index of the specified RadCalendarDay object in the collection.
Declaration
public virtual int IndexOf(RadCalendarDay day)
Parameters
Rad The RadCalendarDay object to locate in the collection. |
Returns
System. The zero-based index of the item found in the CalendarDayCollection; otherwise, -1. |
Insert(Int32, RadCalendarDay)
Inserts an existing RadCalendarDay object into the CalendarDayCollection at the specified location.
Declaration
public virtual void Insert(int index, RadCalendarDay day)
Parameters
System. The indexed location within the collection to insert the RadCalendarDay object. |
Rad 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
Rad The RadCalendarDay object to remove. |
ToArray()
Copies the elements of CalendarDayCollection to a new
System.
Declaration
public virtual RadCalendarDay[] ToArray()
Returns
Rad A one-dimensional System. |
Remarks
Please refer to System.
UpdateOwnerShip(RadCalendarDay)
Declaration
protected virtual void UpdateOwnerShip(RadCalendarDay day)
Parameters
Rad
|
UpdateVisuals()
Declaration
protected virtual void UpdateVisuals()
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32)
Copies the elements of the CalendarDayCollection to an Array, starting at a particular Array index.
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
System. The one-dimensional Array that is the destination of the elements copied from CalendarDayCollection. The Array must have zero-based indexing. |
System. The zero-based index in array at which copying begins. |
Implements
ICollection.IsSynchronized
Gets a value indicating whether access to the CalendarDayCollection is synchronized (thread safe).
Declaration
bool ICollection.IsSynchronized { get; }
Returns
System.
|
Implements
ICollection.SyncRoot
Gets an object that can be used to synchronize access to the CalendarDayCollection.
Declaration
object ICollection.SyncRoot { get; }
Returns
System.
|
Implements
IEnumerable.GetEnumerator()
Returns an enumerator that can be used to iterate through the RadCalendarDay collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System. An IEnumerator that represents the RadCalendarDay collection. |
Implements
IList.Add(Object)
Adds a RadCalendarDay object to the collection of CalendarDays.
Declaration
int IList.Add(object value)
Parameters
System. The RadCalendarDay object to add to the collection. |
Returns
System.
|
Implements
IList.Clear()
Removes all RadCalendarDay objects in the collection of CalendarDays.
Declaration
void IList.Clear()
Implements
IList.Contains(Object)
Checks whether a specific RadCalendarDay object is in the collection of CalendarDays.
Declaration
bool IList.Contains(object value)
Parameters
System. The RadCalendarDay object to search. |
Returns
System. True if the RadCalendarDay is found, false otherwise. |
Implements
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
System.
|
Returns
System.
|
Implements
IList.IndexOf(Object)
Returns a zero based index of a RadCalendarDay object depending on the passed index.
Declaration
int IList.IndexOf(object value)
Parameters
System. The zero-based index, RadCalendarDay object or the date represented by the searched RadCalendarDay object. |
Returns
System. A zero based index of the RadCalendarDay object in the collection, or -1 if the RadCalendarDay object is not found. |
Implements
IList.Insert(Int32, Object)
Adds a RadCalendarDay object in the collection at the specified index.
Declaration
void IList.Insert(int index, object value)
Parameters
System. The index after which the RadCalendarDay object is inserted. |
System. The RadCalendarDay object to insert. |
Implements
IList.IsFixedSize
Gets a value indicating whether the CalendarDayCollection has a fixed size.
Declaration
bool IList.IsFixedSize { get; }
Returns
System.
|
Implements
IList.IsReadOnly
Gets a value indicating whether the CalendarDayCollection is read-only.
Declaration
bool IList.IsReadOnly { get; }
Returns
System.
|
Implements
IList.Item[Int32]
Gets or sets the RadCalendarDay at the specified indexed location in the collection.
Declaration
object IList.this[] { get; set; }
Parameters
System. The indexed location of the RadCalendarDay in the collection. |
Returns
System. The RadCalendarDay at the specified indexed location in the collection. |
Implements
IList.Remove(Object)
Deletes a RadCalendarDay object from the collection.
Declaration
void IList.Remove(object value)
Parameters
System. The RadCalendarDay object to remove. |
Implements
IList.RemoveAt(Int32)
Deletes the RadCalendarDay object from the collection at the specified index.
Declaration
void IList.RemoveAt(int index)
Parameters
System. The index in collection at which the RadCalendarDay object will be deleted. |
Implements
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
System.
|
System.
|
Implements
ICloneable.Clone()
Creates a new object that is a copy of the current instance.
Declaration
object ICloneable.Clone()
Returns
System. A new object that is a copy of this instance. |