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

TypeDescription

Use the Clear method to remove all pages in the control. We do not recommend using the Clear method at runtime, until you handle the controls inside the page. Use the Visible property to hide a page.