RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAction.SetName Method

Sets the value of the Name property.

Pascal
procedure SetName(const Value: TComponentName); override;
C++
virtual __fastcall SetName(const TComponentName Value);

SetName is the protected write implementation of the Name property. It calls the ChangeName method, which performs the actual name change. TCustomAction overrides SetName so that it also changes the Caption property if Caption is the same as Name. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!