FMX.Styles.TStyleStreaming.CanLoadFromResource
Delphi
class function CanLoadFromResource(const ResourceName: string; ResourceType: PChar): Boolean; overload;
class function CanLoadFromResource(Instance: HINST; const ResourceName: string; ResourceType: PChar): Boolean; overload;
C++
__classmethod bool __fastcall CanLoadFromResource(const System::UnicodeString ResourceName, System::WideChar * ResourceType)/* overload */;
__classmethod bool __fastcall CanLoadFromResource(NativeUInt Instance, const System::UnicodeString ResourceName, System::WideChar * ResourceType)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Styles.pas FMX.Styles.hpp |
FMX.Styles | TStyleStreaming |
Description
Loads a style from the specified resource without raising an exception.
In the first signature CanLoadFromResource searches for the specified ResourceName with type ResourceType in the instace handle indicated by Instance.
In the second signature CanLoadFromResource internally calls EnumModules in order to search for ResourceName in all modules of the application.
CanLoadFromResource returns True if the style is successfully loaded, and False otherwise.