参考这段程序
procedure TForm1.Button1Click(Sender: TObject);
var
i: Integer;
begin
for i := 0 to ComponentCount - 1 do
begin
if Components is TLabel then
ShowMessage((Components as TLabel).Caption);
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
i: Integer;
begin
for i := 0 to ComponentCount - 1 do
begin
if Components[i] is TWinControl then begin
//保存 TWinControl(Components[i]).TabOrder
end;
end;
end;