FMX.Types.TFmxObject.Clone

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Clone(const AOwner: TComponent): TFmxObject;

C++

TFmxObject* __fastcall Clone(System::Classes::TComponent* const AOwner);

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TFmxObject

Description

Returns a new cloned instance of this FMX object.

Clone internally creates and returns a new FMX object that is an exact copy of this object.

Note: The class you want to clone must be registered and be a descendant of TFmxObject. Use RegisterClass or RegisterFMXClasses for your components.