Remove(Sheet: IPageControlSheet);
Sheet. Page that will be removed from the collection.
The Remove method removes the specified page from the component.
Executing the example requires a form with the Button1 button and the Panel component named Panel1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Sheets: IPageControlSheets;
Sheet: IPageControlSheet;
Begin
Sheets := PageControl1.Pages;
Sheet := Sheets.Item(Sheets.Count - 1);
Sheets.Remove(Sheet);
End Sub Button1OnClick;
On clicking the button the last page of the PageControl1 component will be removed.
See also: