DataGridViewCellCollection.IList.Clear Metoda

Definicja

Czyści kolekcję.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
abstract member System.Collections.IList.Clear : unit -> unit
override this.System.Collections.IList.Clear : unit -> unit
Sub Clear () Implements IList.Clear

Implementuje

Wyjątki

Wiersz, który jest właścicielem, DataGridViewCellCollection należy już do kontrolki DataGridView .

Uwagi

Po dodaniu wiersza do kontrolki liczba komórek, które zawiera, zawsze odpowiada liczbie kolumn w kontrolce, więc ta metoda nie jest już przydatna.

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy DataGridViewCellCollection wystąpienie jest rzutowe do interfejsu IList .

Dotyczy

Zobacz też