method Components.Clear ()
Removes all objects in a collection.

TypeDescription
The Clear method clears the components collection. The Clear method of the Component object, empties the component, by removing the name, properties and components. Use the Remove method to remove a component from the Components collection.