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.

procedure LoadStyleFromFile(AFile: string); overload; virtual;

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.

procedure LoadStyleFromFile(AFile: string; AComponents: TTMSFNCStylesManagerComponentArray); overload; virtual;

Parameters

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