Back to Devexpress

TdxDockingManager.SaveLayoutToIniFile(string) Method

vcl-dxdockcontrol-dot-tdxdockingmanager-dot-savelayouttoinifile-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

TdxDockingManager.SaveLayoutToIniFile(string) Method

Saves the layout of dock controls to the specified file.

Declaration

delphi
procedure SaveLayoutToIniFile(AFileName: string);

Parameters

NameType
AFileNamestring

Remarks

Use the SaveLayoutToIniFile method to save the layout of dock controls to a file. The target file is specified by its name and path using the AFileName parameter. If the path is not specified, the file is created within the same folder as the application’s executable file. Note that if the file’s extension is not specified, it is automatically set to ‘ ini ‘. If an empty string is specified as the parameter, the ‘ .ini ‘ file will be created.

Settings saved by the SaveLayoutToIniFile method call can be restored using the LoadLayoutFromIniFile method. If storing settings in an INI file doesn’t suit your needs, use either the SaveLayoutToRegistry or SaveLayoutToStream methods.

Note

the SaveLayoutToIniFile method saves the settings for dock controls which reside on the same form as the docking manager. To save the dock controls layout for all forms in an application, use the docking controller’s SaveLayoutToIniFile method instead.

See Also

TdxDockingManager Class

TdxDockingManager Members

dxDockControl Unit