ClassCalendarViewCollection
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalendarViewCollection : IList, ICollection, IEnumerable
Inheritance: objectCalendarViewCollection
Implements:
Properties
Count
Gets the total number of CalendarView objects in the collection.
this[int]
Gets or sets the CalendarView at the specified indexed location in the collection.
Declaration
public virtual CalendarView this[int index] { get; set; }
Parameters
index
The indexed location of the CalendarView in the collection.
Property Value
The CalendarView at the specified indexed location in the collection.
this[string]
Gets or sets by name the CalendarView instance in the collection.
Declaration
public virtual CalendarView this[string str] { get; }
Parameters
str
The name of the CalendarView in the collection.
Property Value
The CalendarView with a specified name in the collection.
Methods
Add(CalendarView)
Adds a previously created CalendarView object to the end of the CalendarViewCollection.
Declaration
public virtual CalendarView Add(CalendarView view)
Parameters
view
The CalendarView object to add to the collection.
Returns
The zero-based index value of the CalendarView object added to the CalendarViewCollection.
AddRange(CalendarViewCollection)
Adds an collection of previously created CalendarView objects to the collection.
Declaration
public virtual CalendarViewCollection AddRange(CalendarViewCollection viewsCollection)
Parameters
viewsCollection
An array of CalendarView objects representing the views to add to the collection.
Returns
Clear()
Removes all CalendarView objects from the collection.
Declaration
public void Clear()
Find(string, bool)
Finds the calendar views with specified key, optionally searching child views.
Declaration
public CalendarView[] Find(string key, bool searchAllChildren)
Parameters
key
The name of the calendar view to search for.
searchAllChildren
true to search child views; otherwise, false.
Returns
An array of CalendarView objects whose Name property matches the specified key.
GetEnumerator()
Returns an enumerator that can be used to iterate through the CalendarView collection.
Declaration
public virtual IEnumerator<CalendarView> GetEnumerator()
Returns
IEnumerator<CalendarView>
An IEnumerator that represents the CalendarView collection.
IndexOf(CalendarView)
Returns the index of the specified calendar view in the collection.
Declaration
public virtual int IndexOf(CalendarView view)
Parameters
view
The CalendarView to locate in the collection.
Returns
The zero-based index of the item found in the calendar view collection; otherwise, -1.
Insert(int, CalendarView)
Inserts an existing CalendarView object into the CalendarViewCollection at the specified location.
Declaration
public virtual void Insert(int index, CalendarView view)
Parameters
index
The indexed location within the collection to insert the CalendarView object.
view
The CalendarView object to insert into the collection.
Remove(CalendarView)
Removes the specified CalendarView object from the CalendarViewCollection.
Declaration
public virtual void Remove(CalendarView view)
Parameters
view
The CalendarView object to remove.
UpdateOwnerShip(CalendarView)
Updates correctly the visual appearance of RadCalendar. Updates the parential dependencies (parent and Calendar properties) also.
Declaration
protected virtual void UpdateOwnerShip(CalendarView view)
Parameters
view
the CalendarView that will be updated