[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TComponent.ChangeName

Actually sets the component name.

## Declaration

`protected procedure TComponent.ChangeName(`
`const NewName: TComponentName`
`);`

## Description

ChangeName is called by the SetName procedure when the component name is set and the name has been verified. It actually sets the name of the component to NewName, and can be used to bypass the name checks which are done when the Name property is set.

Application programmers should never use SetName directly.

## See also

TComponent.SetName |  | Write handler for Name property.
TComponent.Name |  | Name of the component.