Vcl.Controls.TControl.SetName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetName(const Value: TComponentName); override;

C++

virtual void __fastcall SetName(const System::Classes::TComponentName Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Sets the name of the control.

SetName is the protected write implementation of the Name property. TControl updates the Text or Caption property, if appropriate, after changing the value of Name.

Override SetName to execute additional code when the value of the Name property changes.

See Also