Table of Contents

TTMSFNCUtils.Clone Method

Creates and returns a deep clone of AComponent by streaming its published properties.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function Clone(AComponent: TComponent): TComponent;

Parameters

Name Description
AComponent Component to clone.

Returns

New component instance with the same published property values. The caller is responsible for freeing it.