System.Classes.TCreateComponentEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TCreateComponentEvent = procedure (Reader: TReader;
ComponentClass: TComponentClass; var Component: TComponent) of object;

C++

typedef void __fastcall (__closure *TCreateComponentEvent)(TReader* Reader, TComponentClass ComponentClass, TComponent* &Component);

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TCreateComponentEvent is a type of procedure called by the TReader class OnCreateComponent event.

Reader is the reader that needs an instance for a component that it is reading.

ComponentClass is the class of the component to be instantiated.

Component returns new instance of ComponentClass.

TCreateComponentEvent is for internal use only.

See Also