DesignIntf.IDesigner60.RenameMethod

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RenameMethod(const CurName, NewName: string);

C++

virtual void __fastcall RenameMethod(const System::UnicodeString CurName, const System::UnicodeString NewName) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

Description

Renames an existing event handler.

Call RenameMethod to provide an event handler with a new name. The CurName parameter specifies the current name of the event handler, and the NewName parameter specifies the value that the name should be changed to.

Note: Before calling RenameMethod, check whether a method with the new name already exists by calling MethodExists.

See Also