Vcl.Forms.TCustomForm.ValidateRename

提供: 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);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

説明

フォームが所有コンポーネントの名前を変更できるかどうかを示します。

ValidateRename メソッドは AComponent で指定する所有コンポーネントを現在の名前(CurName)から NewName で指定する文字列に変更できるかどうか調べます。AComponent が nil (Delphi)または NULL (C++)の場合や,NewName がすでにフォームのリスト内のコンポーネントの名前である場合,ValidateRename は EComponentError 例外を生成します。

関連項目