Provides a collection container that enables RadScheduler to maintain a list of its RadSchedulerContextMenus.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadSchedulerContextMenuCollection : StateManagedCollection, IList, ICollection, IEnumerable, IStateManager
Inheritance: objectStateManagedCollectionRadSchedulerContextMenuCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSchedulerContextMenuCollection class for the specified RadScheduler.
public RadSchedulerContextMenuCollection(RadScheduler scheduler)
The RadScheduler that the RadSchedulerContextMenuCollection is created for.
Properties
Gets a reference to the RadSchedulerContextMenu at the specified index location in the RadSchedulerContextMenuCollection object.
public RadSchedulerContextMenu this[int index] { get; set; }
The location of the RadSchedulerContextMenu in the RadSchedulerContextMenuCollection
Property Value:The reference to the RadSchedulerContextMenu.
Methods
Adds the specified RadSchedulerContextMenu object to the collection
public void Add(RadSchedulerContextMenu target)
The RadSchedulerContextMenu to add to the collection
Appends the specified array of RadSchedulerContextMenu objects to the end of the current RadSchedulerContextMenuCollection.
public void AddRange(IEnumerable<RadSchedulerContextMenu> contextMenus)
The array of RadSchedulerContextMenu to append to the end of the current RadSchedulerContextMenuCollection.
Determines whether the specified RadSchedulerContextMenu is in the parent RadScheduler's RadSchedulerContextMenuCollection object.
public bool Contains(RadSchedulerContextMenu target)
The RadSchedulerContextMenu to search for in the collection
Returns:true if the specified RadSchedulerContextMenu exists in the collection; otherwise, false.
Copies the RadSchedulerContextMenu instances stored in the RadSchedulerContextMenuCollection object to an System.Array object, beginning at the specified index location in the System.Array.
public void CopyTo(RadSchedulerContextMenu[] array, int index)
The System.Array to copy the RadSchedulerContextMenu instances to.
indexintThe zero-based relative index in array where copying begins
Retrieves the index of a specified RadSchedulerContextMenu object in the collection.
public int IndexOf(RadSchedulerContextMenu target)
The RadSchedulerContextMenu for which the index is returned.
Returns:The index of the specified RadSchedulerContextMenu instance. If the RadSchedulerContextMenu is not currently a member of the collection, it returns -1.
Inserts the specified RadSchedulerContextMenu object to the collection at the specified index location.
public void Insert(int index, RadSchedulerContextMenu target)
The location in the array at which to add the RadSchedulerContextMenu instance.
targetRadSchedulerContextMenuThe RadSchedulerContextMenu to add to the collection
Removes the specified RadSchedulerContextMenu from the parent RadScheduler's RadSchedulerContextMenuCollection object.
public void Remove(RadSchedulerContextMenu target)
The RadSchedulerContextMenu to be removed
To remove a control from an index location, use the RemoveAt(int) method.
Removes a child RadSchedulerContextMenu, at the specified index location, from the RadSchedulerContextMenuCollection object.
public void RemoveAt(int index)
The ordinal index of the RadSchedulerContextMenu to be removed from the collection.