Clears the list of tab names of the control, and causes the associated tab sheets or pages to be freed.
Source position: comctrls.pp line 592
public procedure TPageControl.Clear; |
By calling the Clear method of the protected Tabs property in the TCustomTabControl ancestor, this method removes all tab sheets from the PageControl. The TPageControl.PageCount is 0 afterwards.
Note, however, that the controls on the tab sheets are only destroyed when their Owner is one of the tabsheets. Otherwise they still exist on the form, but their Parent has been set to nil.
|
Contains the list of pages accessible in the tabbed control. |