Open main menu

RAD Studio API Documentation β

FMX.Controls.TStyledControl.FindAndCloneStyleResource

Delphi

function FindAndCloneStyleResource<T: TFmxObject>(const AStyleLookup: string; var AResource: T): Boolean;

C++

template<typename T> bool __fastcall FindAndCloneStyleResource(const System::UnicodeString AStyleLookup, T &AResource);

Properties

Type Visibility Source Unit Parent
function public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TStyledControl

Contents

Description

Finds the specified resource object and makes a copy.

AStyleLookup specifies the name of the resource object to search for. A clone of the original resource is set on AResource.

FindAndCloneStyleResource returns true if the corresponding resource object is found and it is of type T. Otherwise it returns nil.

See Also

Code Examples