System.Classes.TComponent.ChangeName
Delphi
procedure ChangeName(const NewName: TComponentName);
C++
void __fastcall ChangeName(const TComponentName NewName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Classes.pas System.Classes.hpp |
System.Classes | TComponent |
Description
Sets the private, internal storage for the Name property to the string passed in NewName
.
Do not use ChangeName directly in an application. Instead, use the Name property.
Note: The property setter for Name -- SetName-- uses ChangeName to change the component's name. ChangeName is not virtual; do not override it.