Classes.TComponent.Name

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Classes.pas

	property Name: TComponentName read FName write SetName;


Unit: Classes

Type: property

Visibility: published

Member Of: TComponent

C++ Information

From Classes.hpp

	__property System::UnicodeString Name = {read=FName,write=SetName};


Unit: Classes

Type: property

Visibility: public

Member Of: TComponent

Description

Specifies the name of the component as referenced in code.


Use Name to change the name of a component to reflect its purpose in the current application. By default, the IDE assigns sequential names based on the type of the component, such as 'Button1', 'Button2', and so on.

Use Name to refer to the component in code.

Warning:  Changing Name at runtime causes any references to the old name to become undefined. Any subsequent code that uses the old name will cause an exception.

See Also

Code Samples


Personal tools
Translations
Newest Version