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
RadCalendar
owner
|
CalendarDayCollection
days
|
Properties
Calendar
Count
Gets the total number of RadCalendarDay objects in the collection.
Declaration
public virtual int Count { get; }
Property Value
System.Int32
|
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.Int32
index
The indexed location of the RadCalendarDay in the collection. |
Property Value
RadCalendarDay
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.Object
obj
|
Property Value
RadCalendarDay
|
Methods
Add(DateTime)
Adds a DateTime object to the end of the CalendarDayCollection.
Declaration
public virtual RadCalendarDay Add(DateTime day)
Parameters
System.DateTime
day
The DateTime object to add to the collection. |
Returns
RadCalendarDay
|
Add(RadCalendarDay)
Adds a previously created RadCalendarDay object to the end of the CalendarDayCollection.
Declaration
public virtual RadCalendarDay Add(RadCalendarDay day)
Parameters
RadCalendarDay
day
The RadCalendarDay object to add to the collection. |
Returns
RadCalendarDay
|
AddRange(IEnumerable<DateTime>)
Adds a collection of date time values to the collection.
Declaration
public virtual CalendarDayCollection AddRange(IEnumerable<DateTime> days)
Parameters
System.Collections.Generic.IEnumerable<System.DateTime>
days
An IEnumerable of DateTime objects to add to the collection. |
Returns
CalendarDayCollection
|
AddRange(CalendarDayCollection)
Adds an collection of previously created RadCalendarDay objects to the collection.
Declaration
public virtual CalendarDayCollection AddRange(CalendarDayCollection days)
Parameters
CalendarDayCollection
days
An array of RadCalendarDay objects representing the views to add to the collection. |
Returns
CalendarDayCollection
|
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
CalendarDayCollection
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.DateTime
key
The date bound to a particular RadCalendarDay object to search for. |
Returns
RadCalendarDay[]
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.Collections.Generic.IEnumerator<RadCalendarDay>
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
RadCalendarDay
day
The RadCalendarDay object to locate in the collection. |
Returns
System.Int32
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.Int32
index
The indexed location within the collection to insert the RadCalendarDay object. |
RadCalendarDay
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
RadCalendarDay
day
The RadCalendarDay object to remove. |
ToArray()
Copies the elements of CalendarDayCollection to a new System.Array of RadCalendarDay elements.
Declaration
public virtual RadCalendarDay[] ToArray()
Returns
RadCalendarDay[]
A one-dimensional System.Array of RadCalendarDay elements containing copies of the elements of the CalendarDayCollection. |
Remarks
Please refer to System.Collections.ArrayList.ToArray for details.
UpdateOwnerShip(RadCalendarDay)
Declaration
protected virtual void UpdateOwnerShip(RadCalendarDay day)
Parameters
RadCalendarDay
day
|
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.Array
array
The one-dimensional Array that is the destination of the elements copied from CalendarDayCollection. The Array must have zero-based indexing. |
System.Int32
index
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.Boolean
|
Implements
ICollection.SyncRoot
Gets an object that can be used to synchronize access to the CalendarDayCollection.
Declaration
object ICollection.SyncRoot { get; }
Returns
System.Object
|
Implements
IEnumerable.GetEnumerator()
Returns an enumerator that can be used to iterate through the RadCalendarDay collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
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.Object
value
The RadCalendarDay object to add to the collection. |
Returns
System.Int32
|
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.Object
value
The RadCalendarDay object to search. |
Returns
System.Boolean
True if the RadCalendarDay is found, false otherwise. |
Implements
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
System.Int32
index
|
Returns
System.Object
|
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.Object
value
The zero-based index, RadCalendarDay object or the date represented by the searched RadCalendarDay object. |
Returns
System.Int32
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.Int32
index
The index after which the RadCalendarDay object is inserted. |
System.Object
value
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.Boolean
|
Implements
IList.IsReadOnly
Gets a value indicating whether the CalendarDayCollection is read-only.
Declaration
bool IList.IsReadOnly { get; }
Returns
System.Boolean
|
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.Int32
index
The indexed location of the RadCalendarDay in the collection. |
Returns
System.Object
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.Object
value
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.Int32
index
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.Int32
index
|
System.Object
value
|
Implements
ICloneable.Clone()
Creates a new object that is a copy of the current instance.
Declaration
object ICloneable.Clone()
Returns
System.Object
A new object that is a copy of this instance. |