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

TdxPSPreviewWindow.LoadFromIniFile(TCustomIniFile,string) Method

Loads the Print Preview window’s settings from an INI file.

#Declaration

Delphi
procedure LoadFromIniFile(AIniFile: TCustomIniFile; const ASectionName: string); override;

#Parameters

Name Type
AIniFile TCustomIniFile
ASectionName string

#Remarks

This method overrides the second overloaded variant of the LoadFromIniFile method declared in the ancestor class to load the Print Preview window’s settings from a specified section of a certain INI file that is currently open. The AIniFile and ASectionName parameters specify the INI file and section, respectively.

By default, only the window’s position on screen, size, and the visibility of window elements are loaded. You can handle the OnLoadProperties event or override the LoadFromIniFile method in TdxPSPreviewWindow descendants to load any additional data. Once the Print Preview window’s attributes are loaded, the LoadFromIniFile method calls the InitContent method to initialize the Print Preview window with them.

See Also