ListView.RemoveItems Method

Definition

Deletes all child controls in an item or group container of the ListView control.

C#
protected virtual void RemoveItems();

Remarks

This method is used to delete all child controls in an item or group container of the ListView control. If you have a GroupTemplate template defined in the ListView control, the RemoveItems method will remove all the child controls in the group container. Otherwise, it will remove all the child controls in the item container.

Poznámka

This method is primarily used by control developers to extend the ListView control.

Applies to

Produkt Verzie
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also