Sign in Join
FPDoc Onlineexperiment

TComponent.SetName procedure

Member of TComponentprotectedIn unit Classes

Write handler for Name property.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.