FMX.Forms.TCommonCustomForm.ValidateRename

From RAD Studio API Documentation

Delphi

procedure ValidateRename(AComponent: TComponent; const CurName, NewName: string); override;

C++

virtual void __fastcall ValidateRename(System::Classes::TComponent* AComponent, const System::UnicodeString CurName, const System::UnicodeString NewName);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm

Description

Ensures that renaming an owned component does not create a name conflict. {{#multireplace:FMX.Forms.TCommonCustomForm.ValidateRename|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TComponent.ValidateRename|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TComponent.ValidateRename|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Ensures that renaming an owned component does not create a name conflict.

ValidateRename checks whether a component can rename one of its owned components, passed in AComponent, from its current name (CurName) to the string passed in NewName. If AComponent is nil (Delphi) or NULL (C++) or NewName is already the name of a component in the Components list, ValidateRename raises an EComponentError exception.

ValidateRename is used internally when the Name property is modified. It is not necessary to call it directly.

See Also