System.Classes.TSetNameEvent
Delphi
TSetNameEvent = procedure (Reader: TReader; Component: TComponent;
var Name: string) of object;
C++
typedef void __fastcall (__closure *TSetNameEvent)(TReader* Reader, TComponent* Component, System::UnicodeString &Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
TSetNameEvent is a procedure called by the TReader class OnSetName event.
Reader is the reader that is about to assign a name to a new component.
Component is the new component instance to which the reader is about to assign a name.
Name is the name of Component, which reader is about to set. The event handler can change this value to tell the reader to assign a different name.
TSetNameEvent is for internal use only.