Skip to main content

TdxCustomNavBar.SaveToIniFile(string,Boolean) Method

Saves the control layout within the INI file specified.

Declaration

procedure SaveToIniFile(AFileName: string; SaveStyles: Boolean = True);

Parameters

Name Type
AFileName string
SaveStyles Boolean

Remarks

Use the SaveToIniFile method to store the control’s settings to an INI file. The target file is specified by the AFileName parameter. If this file doesn’t exist, it is created. If it cannot be created (e.g. it is in use by another process or the name is set incorrectly), an exception is raised. The SaveStyles parameter specifies whether style settings are to be saved. It is optional and defaults to True.

You can restore the settings saved by the SaveToIniFile method by using the LoadFromIniFile method.

You can also save the control’s settings into a registry path or a stream. Please refer to the SaveToRegistry and SaveToStream methods description for details.

See Also