FMX.Controls.TStyledControl.GetStyleObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetStyleObject: TFmxObject; overload; virtual;
function GetStyleObject(const Clone: Boolean): TFmxObject; overload; virtual;

C++

virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject(void)/* 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.

See Also

Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=FMX.Controls.TStyledControl.GetStyleObject&oldid=645223"