FMX.Forms.IDesignerHook.ValidateRename

From RAD Studio API Documentation
Jump to: navigation, search

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
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms IDesignerHook

Description

Restricts the names that can be given to components on the form that is being designed.

ValidateRename determines whether 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 TCommonCustomForm.ValidateRename method to provide tighter restrictions on renaming.

See Also