method Columns.Clear ()

Removes all objects in a collection.

TypeDescription

Use the Remove method when you need to remove only a column. Use the Clear method when you need to clear the entire columns collection. Also, the Clear method removes all items. Use the RemoveAllItems method to remove all items in the group.