Skip to main content
Table of Contents

TTMSFNCStylesManager.LoadStyleFromFile Method

Loads a JSON style definition from the specified file and applies it to all registered components.

API unit family: TMSFNCStyles Declaring type: TTMSFNCStylesManager

Overloads

Overload 1

Loads a JSON style definition from the specified file and applies it to all registered components.

FMX.TMSFNCStyles.hppPascalC++
procedure LoadStyleFromFile(AFile: string); overload; virtual;
virtual void __fastcall LoadStyleFromFile(System::UnicodeString AFile)/* overload */;

Parameters

Name Description
AFile The path to the JSON style file.

Overload 2

Loads a JSON style definition from the specified file and applies it to the given component list.

FMX.TMSFNCStyles.hppPascalC++
procedure LoadStyleFromFile(AFile: string; AComponents: TTMSFNCStylesManagerComponentArray); overload; virtual;
virtual void __fastcall LoadStyleFromFile(System::UnicodeString AFile, TTMSFNCStylesManagerComponentArray AComponents)/* overload */;

Parameters

Name Description
AFile The path to the JSON style file.
AComponents The array of components to style.