FMX.Presentation.Style.TStyledPresentation.GetStyleObject
Delphi
function GetStyleObject(const Clone: Boolean): TFmxObject; override;
function GetStyleObject: TFmxObject; override;
C++
virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject(const bool Clone)/* overload */;
virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject()/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.Presentation.Style.pas FMX.Presentation.Style.hpp |
FMX.Presentation.Style | TStyledPresentation |
Description
Gets the style resource object linked to TStyledControl.
FMX.Presentation.Style.TStyledPresentation.GetStyleObject inherits from FMX.Controls.TStyledControl.GetStyleObject. All content below this line refers to FMX.Controls.TStyledControl.GetStyleObject.
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.