Class CalendarViewCollection
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class CalendarViewCollection : IEnumerable<CalendarView>, IList, ICollection, IEnumerable
Properties
Calendar
Count
Gets the total number of CalendarView objects in the collection.
Declaration
public virtual int Count { get; }
Property Value
|
System.Int32
|
Implements
Item[Int32]
Gets or sets the CalendarView at the specified indexed location in the collection.
Declaration
public virtual CalendarView this[int index] { get; set; }
Parameters
|
System.Int32
index
The indexed location of the CalendarView in the collection. |
Property Value
|
CalendarView
The CalendarView at the specified indexed location in the collection. |
Item[String]
Gets or sets by name the CalendarView instance in the collection.
Declaration
public virtual CalendarView this[string str] { get; }
Parameters
|
System.String
str
The name of the CalendarView in the collection. |
Property Value
|
CalendarView
The CalendarView with a specified name in the collection. |
Owner
Methods
Add(CalendarView)
Adds a previously created CalendarView object to the end of the CalendarViewCollection.
Declaration
public virtual CalendarView Add(CalendarView view)
Parameters
|
CalendarView
view
The CalendarView object to add to the collection. |
Returns
|
CalendarView
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
|
CalendarViewCollection
viewsCollection
An array of CalendarView objects representing the views to add to the collection. |
Returns
|
CalendarViewCollection
|
Clear()
Removes all CalendarView objects from the collection.
Declaration
public void Clear()
Find(String, Boolean)
Finds the calendar views with specified key, optionally searching child views.
Declaration
public CalendarView[] Find(string key, bool searchAllChildren)
Parameters
|
System.String
key
The name of the calendar view to search for. |
|
System.Boolean
searchAllChildren
true to search child views; otherwise, false. |
Returns
|
CalendarView[]
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
|
System.Collections.Generic.IEnumerator<CalendarView>
An IEnumerator that represents the CalendarView collection. |
Implements
IndexOf(CalendarView)
Returns the index of the specified calendar view in the collection.
Declaration
public virtual int IndexOf(CalendarView view)
Parameters
|
CalendarView
view
The CalendarView to locate in the collection. |
Returns
|
System.Int32
The zero-based index of the item found in the calendar view collection; otherwise, -1. |
Insert(Int32, CalendarView)
Inserts an existing CalendarView object into the CalendarViewCollection at the specified location.
Declaration
public virtual void Insert(int index, CalendarView view)
Parameters
|
System.Int32
index
The indexed location within the collection to insert the CalendarView object. |
|
CalendarView
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
|
CalendarView
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
|
CalendarView
view
the CalendarView that will be updated |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32)
Copies the elements of the CalendarViewCollection 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 CalendarViewCollection. 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 CalendarViewCollection 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 CalendarViewCollection.
Declaration
object ICollection.SyncRoot { get; }
Returns
|
System.Object
|
Implements
IEnumerable.GetEnumerator()
Returns an enumerator that can be used to iterate through the CalendarView collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
|
System.Collections.IEnumerator
An IEnumerator that represents the CalendarView collection. |
Implements
IList.Add(Object)
Adds a previously created CalendarView object to the end of the CalendarViewCollection.
Declaration
int IList.Add(object value)
Parameters
|
System.Object
value
The CalendarView object to add to the collection. |
Returns
|
System.Int32
The zero-based index value of the CalendarView object added to the CalendarViewCollection. |
Implements
IList.Clear()
Removes all CalendarView objects from the collection.
Declaration
void IList.Clear()
Implements
IList.Contains(Object)
Determines whether the specified CalendarView object is a member of the collection.
Declaration
bool IList.Contains(object value)
Parameters
|
System.Object
value
The CalendarView to locate in the collection. |
Returns
|
System.Boolean
true if the CalendarView is a member of the collection; otherwise, false. |
Implements
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
|
System.Int32
index
|
Returns
|
System.Object
|
Implements
IList.IndexOf(Object)
Returns the index of the specified calendar view in the collection.
Declaration
int IList.IndexOf(object value)
Parameters
|
System.Object
value
The CalendarView to locate in the collection. |
Returns
|
System.Int32
The zero-based index of the item found in the calendar view collection; otherwise, -1. |
Implements
IList.Insert(Int32, Object)
Inserts an existing CalendarView object into the CalendarViewCollection at the specified location.
Declaration
void IList.Insert(int index, object value)
Parameters
|
System.Int32
index
The indexed location within the collection to insert the CalendarView object. |
|
System.Object
value
The CalendarView object to insert into the collection. |
Implements
IList.IsFixedSize
Gets a value indicating whether the CalendarViewCollection has a fixed size.
Declaration
bool IList.IsFixedSize { get; }
Returns
|
System.Boolean
|
Implements
IList.IsReadOnly
Gets a value indicating whether the CalendarViewCollection is read-only.
Declaration
bool IList.IsReadOnly { get; }
Returns
|
System.Boolean
|
Implements
IList.Item[Int32]
Gets or sets the CalendarView at the specified indexed location in the collection.
Declaration
object IList.this[] { get; set; }
Parameters
|
System.Int32
index
The indexed location of the CalendarView in the collection. |
Returns
|
System.Object
The CalendarView at the specified indexed location in the collection. |
Implements
IList.Remove(Object)
Removes the specified CalendarView object from the CalendarViewCollection.
Declaration
void IList.Remove(object value)
Parameters
|
System.Object
value
The CalendarView object to remove. |
Implements
IList.RemoveAt(Int32)
Removes the element at the specified index of the CalendarViewCollection.
Declaration
void IList.RemoveAt(int index)
Parameters
|
System.Int32
index
The zero-based index of the element to remove. |
Implements
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
|
System.Int32
index
|
|
System.Object
value
|