Show: Delphi C++
Display Preferences

FMX.Controls.TStyledControl.FindAndCloneStyleResource

From RAD Studio API Documentation
Jump to: navigation, search

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

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

Personal tools
In Other Languages
Previous Versions
Assistance