Class
CalendarViewCollection

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class CalendarViewCollection : IList, ICollection, IEnumerable

Inheritance: objectCalendarViewCollection

Implements: ICollectionIEnumerableIList

Properties

Calendar

Declaration

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

Property Value

RadCalendar

Count

Gets the total number of CalendarView objects in the collection.

Declaration

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

Property Value

int

Implements ICollection.Count

Owner

Declaration

cs-api-definition
public CalendarView Owner { get; }

Property Value

CalendarView

this[int]

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

Declaration

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

Parameters

index

int

The indexed location of the CalendarView in the collection.

Property Value

CalendarView

The CalendarView at the specified indexed location in the collection.

this[string]

Gets or sets by name the CalendarView instance in the collection.

Declaration

cs-api-definition
public virtual CalendarView this[string str] { get; }

Parameters

str

string

The name of the CalendarView in the collection.

Property Value

CalendarView

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

cs-api-definition
public virtual CalendarView Add(CalendarView view)

Parameters

view

CalendarView

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

cs-api-definition
public virtual CalendarViewCollection AddRange(CalendarViewCollection viewsCollection)

Parameters

viewsCollection

CalendarViewCollection

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

Returns

CalendarViewCollection

Clear()

Removes all CalendarView objects from the collection.

Declaration

cs-api-definition
public void Clear()

Find(string, bool)

Finds the calendar views with specified key, optionally searching child views.

Declaration

cs-api-definition
public CalendarView[] Find(string key, bool searchAllChildren)

Parameters

key

string

The name of the calendar view to search for.

searchAllChildren

bool

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

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

cs-api-definition
public virtual int IndexOf(CalendarView view)

Parameters

view

CalendarView

The CalendarView to locate in the collection.

Returns

int

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

cs-api-definition
public virtual void Insert(int index, CalendarView view)

Parameters

index

int

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

view

CalendarView

The CalendarView object to insert into the collection.

Remove(CalendarView)

Removes the specified CalendarView object from the CalendarViewCollection.

Declaration

cs-api-definition
public virtual void Remove(CalendarView view)

Parameters

view

CalendarView

The CalendarView object to remove.

UpdateOwnerShip(CalendarView)

Updates correctly the visual appearance of RadCalendar. Updates the parential dependencies (parent and Calendar properties) also.

Declaration

cs-api-definition
protected virtual void UpdateOwnerShip(CalendarView view)

Parameters

view

CalendarView

the CalendarView that will be updated