A list of widgets that can be safely iterated over even if the collection changes during iteration.
Inheritance
WidgetList<TWidget>
public class WidgetList<TWidget> : Collection<TWidget>, IList<TWidget>, ICollection<TWidget>, IList, ICollection, IEnumerable<TWidget>, IEnumerable where TWidget : class, IWidget
Type Parameters
Constructors
Declaration
public WidgetList(ICanvas canvas)
Parameters
Type |
Name |
Description |
ICanvas |
canvas |
|
Methods
Declaration
protected override void ClearItems()
Overrides
System.Collections.ObjectModel.Collection<TWidget>.ClearItems()
Declaration
public WidgetList<TWidget>.Enumerator GetEnumerator()
Returns
Declaration
protected override void InsertItem(int index, TWidget item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
TWidget |
item |
|
Overrides
System.Collections.ObjectModel.Collection<TWidget>.InsertItem(System.Int32, TWidget)
Declaration
protected override void RemoveItem(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Overrides
System.Collections.ObjectModel.Collection<TWidget>.RemoveItem(System.Int32)
Extension Methods