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

TComponent.SetName

Write handler for Name property.

Declaration

Source position: classesh.inc line 1617

protected procedure TComponent.SetName(

  const NewName: TComponentName

); virtual;

Description

SetName is the write handler for the Name property. It checks whether the desired name is valid (i.e is a valid identifier) and is unique among the children of the owner component. If either conditions is not satisfied, an exception is raised.

See also

Name

  

Name of the component.

ValidateRename

  

Called when a name change must be validated

The latest version of this document can be found at lazarus-ccr.sourceforge.net.