Class
CalendarDayCollection

Summary description for CalendarDayCollection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class CalendarDayCollection : IList, ICollection, IEnumerable, ICloneable

Inheritance: objectCalendarDayCollection

Implements: ICloneableICollectionIEnumerableIList

Constructors

CalendarDayCollection()

Declaration

cs-api-definition
public CalendarDayCollection()

CalendarDayCollection(RadCalendar, CalendarDayCollection)

Declaration

cs-api-definition
public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days)

Parameters

owner

RadCalendar

days

CalendarDayCollection

Properties

Calendar

Declaration

cs-api-definition
public RadCalendar Calendar { get; set; }

Property Value

RadCalendar

Count

Gets the total number of RadCalendarDay objects in the collection.

Declaration

cs-api-definition
public virtual int Count { get; }

Property Value

int

Implements ICollection.Count

this[int]

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

Declaration

cs-api-definition
public virtual RadCalendarDay this[int index] { get; set; }

Parameters

index

int

The indexed location of the RadCalendarDay in the collection.

Property Value

RadCalendarDay

The RadCalendarDay at the specified indexed location in the collection.

this[object]

Gets or sets a RadCalendarDay object depending on the passed key. Only integer and string indexes are valid.

Declaration

cs-api-definition
public virtual RadCalendarDay this[object obj] { get; set; }

Parameters

obj

object

Property Value

RadCalendarDay

Methods

Add(DateTime)

Adds a DateTime object to the end of the CalendarDayCollection.

Declaration

cs-api-definition
public virtual RadCalendarDay Add(DateTime day)

Parameters

day

DateTime

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

cs-api-definition
public virtual RadCalendarDay Add(RadCalendarDay day)

Parameters

day

RadCalendarDay

The RadCalendarDay object to add to the collection.

Returns

RadCalendarDay

AddRange(CalendarDayCollection)

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

Declaration

cs-api-definition
public virtual CalendarDayCollection AddRange(CalendarDayCollection days)

Parameters

days

CalendarDayCollection

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

Returns

CalendarDayCollection

AddRange(IEnumerable<DateTime>)

Adds a collection of date time values to the collection.

Declaration

cs-api-definition
public virtual CalendarDayCollection AddRange(IEnumerable<DateTime> days)

Parameters

days

IEnumerable<DateTime>

An IEnumerable of DateTime objects to add to the collection.

Returns

CalendarDayCollection

Clear()

Removes all RadCalendarDay objects in the collection of CalendarDays.

Declaration

cs-api-definition
public void Clear()

Clone()

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

Declaration

cs-api-definition
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

cs-api-definition
public RadCalendarDay[] Find(DateTime key)

Parameters

key

DateTime

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

cs-api-definition
public virtual IEnumerator<RadCalendarDay> GetEnumerator()

Returns

IEnumerator<RadCalendarDay>

An IEnumerator that represents the RadCalendarDay collection.

IndexOf(RadCalendarDay)

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

Declaration

cs-api-definition
public virtual int IndexOf(RadCalendarDay day)

Parameters

day

RadCalendarDay

The RadCalendarDay object to locate in the collection.

Returns

int

The zero-based index of the item found in the CalendarDayCollection; otherwise, -1.

Insert(int, RadCalendarDay)

Inserts an existing RadCalendarDay object into the CalendarDayCollection at the specified location.

Declaration

cs-api-definition
public virtual void Insert(int index, RadCalendarDay day)

Parameters

index

int

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

day

RadCalendarDay

The RadCalendarDay object to insert into the collection.

Remove(RadCalendarDay)

Removes the specified RadCalendarDay object from the CalendarDayCollection.

Declaration

cs-api-definition
public virtual void Remove(RadCalendarDay day)

Parameters

day

RadCalendarDay

The RadCalendarDay object to remove.

ToArray()

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

Declaration

cs-api-definition
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.

UpdateOwnerShip(RadCalendarDay)

Declaration

cs-api-definition
protected virtual void UpdateOwnerShip(RadCalendarDay day)

Parameters

day

RadCalendarDay

UpdateVisuals()

Declaration

cs-api-definition
protected virtual void UpdateVisuals()