System.ComponentModel.BindingList<T>.ClearItems Method

Removes all elements from the collection.

Syntax

protected override void ClearItems ()

Remarks

The BindingList`1.ClearItems method removes all the items from the collection represented by the System.Collections.ObjectModel.Collection`1.Items property.

BindingList`1.ClearItems calls the BindingList`1.EndNew(int) method before clearing out the collection and raises the BindingList`1.ListChanged event after it has been cleared.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0