Vcl.Forms.IDesignerHook.ValidateRename
Delphi
procedure ValidateRename(AComponent: TComponent; const CurName, NewName: string);
C++
virtual void __fastcall ValidateRename(System::Classes::TComponent* AComponent, const System::UnicodeString CurName, const System::UnicodeString NewName) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | IDesignerHook |
Description
Restricts the names that can be given to components on the form that is being designed.
Call ValidateRename to determine if the component specified by AComponent, which currently has the name specified by CurName, can be renamed to the string specified by NewName. This method is usually called by the form's ValidateRename method to provide tighter restrictions on renaming, such as prohibiting reserved words.