FMX.Controls.TStyleContainer.FindStyleResource
Delphi
function FindStyleResource(const AStyleLookup: string; const Clone: Boolean = False): TFmxObject; override;
C++
virtual Fmx::Types::TFmxObject* __fastcall FindStyleResource(const System::UnicodeString AStyleLookup, const bool Clone = false)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TStyleContainer |
Description
Returns the style resource object with the specified (AStyleLookup
).
FMX.Controls.TStyleContainer.FindStyleResource inherits from FMX.Types.TFmxObject.FindStyleResource. All content below this line refers to FMX.Types.TFmxObject.FindStyleResource.
Returns the style resource object with the specified (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
).