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

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class DropDownListItemCollection : ControlItemCollection, IList<DropDownListItem>, ICollection<DropDownListItem>, IEnumerable<DropDownListItem>, IEnumerable

Inheritance: objectControlItemCollectionDropDownListItemCollection

Implements: ICollection<DropDownListItem>IEnumerableIEnumerable<DropDownListItem>IList<DropDownListItem>

Inherited Members ControlItemCollection.VisibleChildren<T>()ControlItemCollection.Add(ControlItem)ControlItemCollection.Contains(ControlItem)ControlItemCollection.CopyTo(ControlItem[], int)ControlItemCollection.AddRange(IEnumerable<ControlItem>)ControlItemCollection.IndexOf(ControlItem)ControlItemCollection.Insert(int, ControlItem)ControlItemCollection.Remove(ControlItem)ControlItemCollection.FindChild<TControlItem>(Predicate<TControlItem>)ControlItemCollection.FindChildByText<TControlItem>(string)ControlItemCollection.FindChildByValue<TControlItem>(string)ControlItemCollection.FindChildByAttribute<TControlItem>(string, string)ControlItemCollection.FindChildByValue<TControlItem>(string, bool)ControlItemCollection.FindChildByText<TControlItem>(string, bool)ControlItemCollection.AddItemToParentControls(int, ControlItem)ControlItemCollection.OnInsertComplete(int, object)ControlItemCollection.OnRemoveComplete(int, object)ControlItemCollection.OnClear()ControlItemCollection.SetDirtyObject(object)ControlItemCollection.ParentControlItemCollection.VisibleItemsControlItemCollection.List...

Constructors

C#
public DropDownListItemCollection(Control parent)
Parameters:parentControl

Properties

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

Implements: IList<DropDownListItem>.this[int]

Methods

C#
public void Add(DropDownListItem item)
Parameters:itemDropDownListItem

Implements: ICollection<DropDownListItem>.Add(DropDownListItem)

C#
public virtual void Add(string text)
Parameters:textstring
C#
public void Insert(int index, DropDownListItem item)
Parameters:indexintitemDropDownListItem
C#
public virtual void Insert(int index, string text)
Parameters:indexinttextstring
C#
public void Remove(DropDownListItem item)
Parameters:itemDropDownListItem
C#
public void RemoveAt(int index)
Parameters:indexint
C#
protected override void SetOwner(ControlItem item)
Parameters:itemControlItem

Overrides: ControlItemCollection.SetOwner(ControlItem)

C#
public void Sort()
C#
public void Sort(Func<DropDownListItem, object> predicate)
Parameters:predicateFunc<DropDownListItem, object>
C#
public void Sort(IComparer comparer)
Parameters:comparerIComparer