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

Represents a collection of RadListBoxItem objects in a RadListBox control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadListBoxItemCollection : ControlItemCollection, IList, ICollection, IStateManager, IList<RadListBoxItem>, ICollection<RadListBoxItem>, IEnumerable<RadListBoxItem>, IEnumerable

Inheritance: objectStateManagedCollectionControlItemCollectionRadListBoxItemCollection

Implements: ICollectionICollection<RadListBoxItem>IEnumerableIEnumerable<RadListBoxItem>IListIList<RadListBoxItem>IStateManager...

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.RemoveAt(int)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.OnInsertComplete(int, object)ControlItemCollection.OnRemoveComplete(int, object)ControlItemCollection.OnClear()ControlItemCollection.SetDirtyObject(object)ControlItemCollection.ParentControlItemCollection.VisibleItemsControlItemCollection.ListStateManagedCollection.Clear()StateManagedCollection.CopyTo(Array, int)StateManagedCollection.CreateKnownType(int)StateManagedCollection.GetEnumerator()StateManagedCollection.GetKnownTypes()StateManagedCollection.OnClearComplete()StateManagedCollection.OnValidate(object)StateManagedCollection.OnInsert(int, object)StateManagedCollection.OnRemove(int, object)StateManagedCollection.SetDirty()StateManagedCollection.Countobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the RadListBoxItemCollection class.

C#
public RadListBoxItemCollection(Control parent)
Parameters:parentControl

The parent RadListBox control.

Properties

Gets or sets the RadListBoxItem at the specified index.

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

Implements: IList<RadListBoxItem>.this[int]

Methods

Appends an item to the collection.

C#
public void Add(RadListBoxItem item)
Parameters:itemRadListBoxItem

The item to add to the collection.

Implements: ICollection<RadListBoxItem>.Add(RadListBoxItem)

Appends an item to the collection.

C#
public virtual void Add(string text)
Parameters:textstring

The text of the new item.

C#
protected override void AddItemToParentControls(int index, ControlItem item)
Parameters:indexintitemControlItem

Overrides: ControlItemCollection.AddItemToParentControls(int, ControlItem)

Finds all items mathcing the specified criteria.

C#
public IList<RadListBoxItem> FindAll(Predicate<RadListBoxItem> match)
Parameters:matchPredicate<RadListBoxItem>

The delegate which determines whether an item matches the search criteria.

Returns:

IList<RadListBoxItem>

Inserts an item to the collection at the specified index.

C#
public void Insert(int index, RadListBoxItem item)
Parameters:indexint

The zero-based index at which item should be inserted.

itemRadListBoxItem

The item to insert into the collection.

Inserts an item to the collection at the specified index.

C#
public virtual void Insert(int index, string text)
Parameters:indexint

The zero-based index location at which to insert the RadListBoxItem.

textstring

The text of the new item.

Removes the specified item from the collection.

C#
public void Remove(RadListBoxItem item)
Parameters:itemRadListBoxItem

The item to remove from the collection.

C#
protected override void SetOwner(ControlItem item)
Parameters:itemControlItem

Overrides: ControlItemCollection.SetOwner(ControlItem)

Sort the items from RadListBoxItemCollection.

C#
public void Sort()

Sort the items from RadListBoxItemCollection.

C#
public void Sort(Func<RadListBoxItem, object> predicate)
Parameters:predicateFunc<RadListBoxItem, object>

Sort the items from RadListBoxItemCollection.

C#
public void Sort(IComparer comparer)
Parameters:comparerIComparer

An object from IComparer interface.