API:Vcl.ComCtrls.TPageControl.SetChildOrder
Delphi
procedure SetChildOrder(Child: TComponent; Order: Integer); override;
C++
DYNAMIC void __fastcall SetChildOrder(System::Classes::TComponent* Child, int Order);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TPageControl |
Description
Changes the order in which the child component appears in the list of child components returned by the GetChildren method.
Vcl.ComCtrls.TPageControl.SetChildOrder inherits from Vcl.Controls.TWinControl.SetChildOrder. All content below this line refers to Vcl.Controls.TWinControl.SetChildOrder.
Changes the order in which the child component appears in the list of child components returned by the GetChildren method.
Use SetChildOrder when you want to change the order in which child objects are streamed in. Specify the child component whose order you want to change as the value of the Child parameter. Indicate the position you want the component to be in as the value of the Order parameter.
When SetChildOrder is called, items previously below the child's old position move up, and those below the new position move down.