Vcl.Forms.TCustomForm.ValidateRename
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);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
説明
フォームが所有コンポーネントの名前を変更できるかどうかを示します。
ValidateRename メソッドは AComponent で指定する所有コンポーネントを現在の名前(CurName)から NewName で指定する文字列に変更できるかどうか調べます。AComponent が nil (Delphi)または NULL (C++)の場合や,NewName がすでにフォームのリスト内のコンポーネントの名前である場合,ValidateRename は EComponentError 例外を生成します。