FMX.Types.FindStyleResource
Delphi
function FindStyleResource(const AStyleLookup: string; const Clone: Boolean = False): TFmxObject;
C++
extern DELPHI_PACKAGE TFmxObject* __fastcall FindStyleResource(const System::UnicodeString AStyleLookup, const bool Clone = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | FMX.Types |
Description
Returns the style resource object with the specified name (AStyleLookup
).
If AStyleLookup
is empty, FindStyleResource returns nil. If no resource object is linked directly to the control, FindStyleResource looks for the styles of the control's children. If no resource object is found, it returns nil.
Clone
determines whether the returned style resource object should be the original style object (False
) or a copy of the original (True
).