Remarks: This is used to provide an easy way to add items to a ListControl. It is not mandatory to use this collection, however, since each control can specify bindings to your own model objects using ListControl.ItemKeyBinding, ListControl.ItemTextBinding, or other subclass bindings.

Constructors

ListItemCollection

#
public ListItemCollection()
Initializes a new instance of the ListItemCollection class.

ListItemCollection

#
public ListItemCollection(IEnumerable<IListItem> collection)
Initializes a new instance of the ListItemCollection class with the specified collection.

Methods

Add

#
public void Add(string text, string key)
Add a new item to the list with the specified text and key

Add

#
public void Add(string text)
Adds a new item to the list with the specified text

AddRange

public void AddRange(IEnumerable<T> items)
Adds the specified items to the collection.
inherited fromExtendedObservableCollection<T>

Sort

public void Sort(Comparison<T> comparison)
Sorts the collection using the specified comparison.
inherited fromExtendedObservableCollection<T>

Sort

public void Sort(IComparer<T> comparer)
Sorts the collection using the specified comparer.
inherited fromExtendedObservableCollection<T>