DateTimeCollection
Stores the dates selected in a calendar. When associated with a RadCalendar, supported edits participate in selection notifications, and additions are checked against the calendar's selection constraints.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DateTimeCollection : IList, ICollection, IEnumerable, ICloneable
Inheritance: objectDateTimeCollection
Implements:
Constructors
Initializes an empty selected-date collection without a calendar association.
public DateTimeCollection()
Initializes a selected-date collection associated with a calendar.
public DateTimeCollection(RadCalendar calendar)
The calendar that supplies selection constraints and receives selection notifications.
Properties
Gets the total number of DateTime objects in the collection.
public virtual int Count { get; }
Implements:
Gets or sets the DateTime at the specified indexed location in the collection.
public virtual DateTime this[int index] { get; set; }
The indexed location of the DateTime in the collection.
Property Value:The DateTime at the specified indexed location in the collection.
Methods
Adds an array of previously created DateTime objects to the collection.
public virtual void AddRange(DateTime[] inputItems)
An array of DateTime objects representing the dates to add to the collection.
Suppresses selection notifications while selected dates are changed.
public void BeginUpdate()
Removes all DateTime objects from the collection.
public void Clear()
Creates a new DateTimeCollection object that is a copy of the current instance.
public virtual DateTimeCollection Clone()
A new DateTimeCollection object that is a copy of this instance.
Re-enables selection notifications for subsequent changes; this does not emit a notification for changes made during the batch.
public void EndUpdate()
Returns an enumerator that can be used to iterate through the DateTime collection.
public virtual IEnumerator<DateTime> GetEnumerator()
IEnumerator<DateTime>
An IEnumerator that represents the DateTime collection.
Inserts an existing DateTime object into the DateTimeCollection at the specified location.
Removes the specified DateTime object from the DateTimeCollection.
Removes the specified dates from a calendar-associated collection as one selection change.
Copies the elements of the DateTime collection to a new DateTime array.
Refreshes and invalidates the associated calendar after selected dates change.
protected void UpdateOwnerVisuals()