FMX.Types.TFmxObject.FindStyleResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindStyleResource(const AStyleLookup: string; const Clone: Boolean = False): TFmxObject; overload; virtual;

C++

virtual TFmxObject* __fastcall FindStyleResource(const System::UnicodeString AStyleLookup, const bool Clone = false)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TFmxObject

Description

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).

See Also