FMX.Controls.TStyledControl.GetStyleObject
Delphi
function GetStyleObject: TFmxObject; overload; virtual;
function GetStyleObject(const Clone: Boolean): TFmxObject; overload; virtual;
C++
virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject()/* overload */;
virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject(const bool Clone)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TStyledControl |
Description
Gets the style resource object linked to TStyledControl.
GetStyleObject is called when the style is applied. Apply a style by calling the ApplyStyleLookup method.
If no style is defined for the current control, it receives the style of the current scene. If the current scene does not have a resource object, GetStyleObject continues to look through the default styles and Parent's style.
Do not call GetStyleObject in an application.