From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetStyleObject(const Clone: Boolean): TFmxObject; override;
function GetStyleObject: TFmxObject; override;


virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject(const bool Clone)/* overload */;
virtual Fmx::Types::TFmxObject* __fastcall GetStyleObject(void)/* overload */;


Type Visibility Source Unit Parent
function protected
FMX.Presentation.Style TStyledPresentation


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.

See Also