FMX.Controls.TStyledControl.FindStyleResource
Delphi
function FindStyleResource(const AStyleLookup: string; const Clone: Boolean = False): TFmxObject; overload; override;
function FindStyleResource<T: TFmxObject>(const AStyleLookup: string; var AResource: T): Boolean; overload;
C++
virtual Fmx::Types::TFmxObject* __fastcall FindStyleResource(const System::UnicodeString AStyleLookup, const bool Clone = false)/* overload */;
template<typename T> HIDESBASE bool __fastcall FindStyleResource(const System::UnicodeString AStyleLookup, T &AResource)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TStyledControl |
Description
Recherche l'objet ressource lié pour le style spécifié par le nom.
Le paramètre AStyleLookup
spécifie le nom du style.
Si AStyleLookup
est vide, FindStyleResource renvoie nil. Si aucun objet ressource n'est lié directement au contrôle, FindStyleResource effectue sa recherche pour les styles des enfants du contrôle. Si aucun objet ressource n'est trouvé, cette fonction renvoie nil.
Clone
détermine si l'objet ressource de style renvoyé doit être l'objet de style original (False
) ou une copie de l'original (True
).
Voir aussi
- FMX.Controls.TStyledControl.ApplyStyle
- FMX.Controls.TStyledControl.StyleLookup
- FMX.Controls.TStyledControl.ApplyStyleLookup
- FMX.Controls.TStyledControl.FreeStyle
- FMX.Controls.TStyledControl.GetStyleObject
- FMX.Controls.TStyledControl.Painting
- Conception de composants FireMonkey