New to Telerik UI for WinFormsStart a free 30-day trial

Summary description for CalendarDayCollection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CalendarDayCollection : IList, ICollection, IEnumerable, ICloneable

Inheritance: objectCalendarDayCollection

Implements: ICloneableICollectionIEnumerableIList

Constructors

C#
public CalendarDayCollection()
C#
public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days)
Parameters:ownerRadCalendardaysCalendarDayCollection

Properties

C#
public RadCalendar Calendar { get; set; }

Gets the total number of RadCalendarDay objects in the collection.

C#
public virtual int Count { get; }

Implements: ICollection.Count

Gets or sets the RadCalendarDay at the specified indexed location in the collection.

C#
public virtual RadCalendarDay this[int index] { get; set; }
Parameters:indexint

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.

C#
public virtual RadCalendarDay this[object obj] { get; set; }
Parameters:objobject

Methods

Adds a DateTime object to the end of the CalendarDayCollection.

C#
public virtual RadCalendarDay Add(DateTime day)
Parameters:dayDateTime

The DateTime object to add to the collection.

Returns:

RadCalendarDay

Adds a previously created RadCalendarDay object to the end of the CalendarDayCollection.

C#
public virtual RadCalendarDay Add(RadCalendarDay day)
Parameters:dayRadCalendarDay

The RadCalendarDay object to add to the collection.

Returns:

RadCalendarDay

Adds an collection of previously created RadCalendarDay objects to the collection.

C#
public virtual CalendarDayCollection AddRange(CalendarDayCollection days)
Parameters:daysCalendarDayCollection

An array of RadCalendarDay objects representing the views to add to the collection.

Returns:

CalendarDayCollection

Adds a collection of date time values to the collection.

C#
public virtual CalendarDayCollection AddRange(IEnumerable<DateTime> days)
Parameters:daysIEnumerable<DateTime>

An IEnumerable of DateTime objects to add to the collection.

Returns:

CalendarDayCollection

Removes all RadCalendarDay objects in the collection of CalendarDays.

C#
public void Clear()

Creates a new CalendarDayCollection object that is a copy of the current instance.

C#
public virtual CalendarDayCollection Clone()
Returns:

CalendarDayCollection

A new CalendarDayCollection object that is a copy of this instance.

Finds the RadCalendarDay with specified key, optionally searching child days.

C#
public RadCalendarDay[] Find(DateTime key)
Parameters:keyDateTime

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.

Returns an enumerator that can be used to iterate through the RadCalendarDay collection.

C#
public virtual IEnumerator<RadCalendarDay> GetEnumerator()
Returns:

IEnumerator<RadCalendarDay>

An IEnumerator that represents the RadCalendarDay collection.

Returns the index of the specified RadCalendarDay object in the collection.

C#
public virtual int IndexOf(RadCalendarDay day)
Parameters:dayRadCalendarDay

The RadCalendarDay object to locate in the collection.

Returns:

int

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.

C#
public virtual void Insert(int index, RadCalendarDay day)
Parameters:indexint

The indexed location within the collection to insert the RadCalendarDay object.

dayRadCalendarDay

The RadCalendarDay object to insert into the collection.

Removes the specified RadCalendarDay object from the CalendarDayCollection.

C#
public virtual void Remove(RadCalendarDay day)
Parameters:dayRadCalendarDay

The RadCalendarDay object to remove.

Copies the elements of CalendarDayCollection to a new Array of RadCalendarDay elements.

C#
public virtual RadCalendarDay[] ToArray()
Returns:

RadCalendarDay[]

A one-dimensional Array of RadCalendarDay elements containing copies of the elements of the CalendarDayCollection.

Remarks:

Please refer to ToArray() for details.

C#
protected virtual void UpdateOwnerShip(RadCalendarDay day)
Parameters:dayRadCalendarDay
C#
protected virtual void UpdateVisuals()