Skip to main content

TcxTabSheet.PageControl Property

Specifies the owning page control.

Declaration

property PageControl: TcxPageControl read; write;

Property Value

Type
TcxPageControl

Remarks

Use the PageControl property to specify the page control, which owns the page. This can be used to move the page from one page control to another or to add a newly created page to a page control.

The following sample code creates a new page and adds it to a page control.

var NewPage: TcxTabSheet;
// ...
NewPage := TcxTabSheet.Create(Form1);
with NewPage do
begin
  Caption := 'New Page';
  PageControl := cxPageControl1;
end;
See Also