New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Provides a collection container that enables RadScheduler to maintain a list of its RadSchedulerContextMenus.

Definition

Constructors

Initializes a new instance of the RadSchedulerContextMenuCollection class for the specified RadScheduler.

C#
public RadSchedulerContextMenuCollection(RadScheduler scheduler)
Parameters:schedulerRadScheduler

The RadScheduler that the RadSchedulerContextMenuCollection is created for.

Properties

Gets a reference to the RadSchedulerContextMenu at the specified index location in the RadSchedulerContextMenuCollection object.

C#
public RadSchedulerContextMenu this[int index] { get; set; }
Parameters:indexint

The location of the RadSchedulerContextMenu in the RadSchedulerContextMenuCollection

Property Value:

The reference to the RadSchedulerContextMenu.

Methods

Adds the specified RadSchedulerContextMenu object to the collection

C#
public void Add(RadSchedulerContextMenu target)
Parameters:targetRadSchedulerContextMenu

The RadSchedulerContextMenu to add to the collection

Appends the specified array of RadSchedulerContextMenu objects to the end of the current RadSchedulerContextMenuCollection.

C#
public void AddRange(IEnumerable<RadSchedulerContextMenu> contextMenus)
Parameters:contextMenusIEnumerable<RadSchedulerContextMenu>

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.

C#
public bool Contains(RadSchedulerContextMenu target)
Parameters:targetRadSchedulerContextMenu

The RadSchedulerContextMenu to search for in the collection

Returns:

bool

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.

C#
public void CopyTo(RadSchedulerContextMenu[] array, int index)
Parameters:arrayRadSchedulerContextMenu[]

The System.Array to copy the RadSchedulerContextMenu instances to.

indexint

The zero-based relative index in array where copying begins

Retrieves the index of a specified RadSchedulerContextMenu object in the collection.

C#
public int IndexOf(RadSchedulerContextMenu target)
Parameters:targetRadSchedulerContextMenu

The RadSchedulerContextMenu for which the index is returned.

Returns:

int

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.

C#
public void Insert(int index, RadSchedulerContextMenu target)
Parameters:indexint

The location in the array at which to add the RadSchedulerContextMenu instance.

targetRadSchedulerContextMenu

The RadSchedulerContextMenu to add to the collection

C#
protected override void OnInsertComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: StateManagedCollection.OnInsertComplete(int, object)

Removes the specified RadSchedulerContextMenu from the parent RadScheduler's RadSchedulerContextMenuCollection object.

C#
public void Remove(RadSchedulerContextMenu target)
Parameters:targetRadSchedulerContextMenu

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.

C#
public void RemoveAt(int index)
Parameters:indexint

The ordinal index of the RadSchedulerContextMenu to be removed from the collection.

C#
protected override void SetDirtyObject(object o)
Parameters:oobject

Overrides: StateManagedCollection.SetDirtyObject(object)