FMX.Styles.TStyleManager.TrySetStyleFromResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function TrySetStyleFromResource(const ResourceName: string): Boolean;

C++

__classmethod bool __fastcall TrySetStyleFromResource(const System::UnicodeString ResourceName);

Properties

Type Visibility Source Unit Parent
function public
FMX.Styles.pas
FMX.Styles.hpp
FMX.Styles TStyleManager

Description

Loads the style from ResourceName and sets the style as the active style.

TrySetStyleFromResource sets the style without raising exceptions.