From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property Name: TComponentName read FName write SetName stored False;


__property TComponentName Name = {read=FName, write=SetName, stored=false};


Type Visibility Source Unit Parent
property published
System.Classes TComponent


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 run time 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 Examples