Vcl.Themes.TStyleManager.LoadFromFile
Delphi
class function LoadFromFile(const FileName: string; const DesigningState: Boolean = False): TStyleServicesHandle;
C++
__classmethod TStyleManager_TStyleServicesHandle __fastcall LoadFromFile(const System::UnicodeString FileName, const bool DesigningState = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Themes.pas Vcl.Themes.hpp |
Vcl.Themes | TStyleManager |
Description
LoadFromFile loads a style from the specified file.
This function has two main parameters:
- FileName - The file name where LoadFromFile loads the style from.
- DesigningState - This parameter allows one to specify when the current RAD Studio VCL project uses a loaded style. The default value is False.
Note: LoadFromFile does not automatically switch to the loaded style. To do that, call the SetStyle method.