Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomNavBar.LoadFromIniFile(string,Boolean) Method

Loads the control’s layout from the specified INI file.

#Declaration

Delphi
procedure LoadFromIniFile(AFileName: string; LoadStyles: Boolean = True);

#Parameters

Name Type
AFileName string
LoadStyles Boolean

#Remarks

Use the LoadFromIniFile method to load settings from an INI file which was created using the SaveToIniFile method. The AFileName parameter specifies the INI file containing settings to load. The LoadStyles parameter specifies whether style settings must be loaded. This parameter is optional and defaults to True.

If the file specified by the AFileName parameter does not exist, an exception is raised. Also note that styles may not have been saved by the SaveToIniFile method call. In this case, the LoadStyles parameter value is ignored.

If storing settings within an INI file doesn’t suit your needs, refer to the SaveToRegistry and SaveToStream methods.

See Also