Enterprise Architect Add-in Framework Documentation
EA_OnPostNewMethod notifies Add-Ins that a new method has been created on a diagram. It enables Add-Ins to modify the method upon creation. This event occurs when a user creates a new method on an element by either drag-dropping from the Project Browser, using the method's Properties dialog, or using the in-place editor on the diagram. The notification is provided immediately after the method is created. Set Repository.SuppressEADialogs to true to suppress Enterprise Architect from showing its default dialogs. Also look at EA_OnPreNewMethod.

Namespace: EAAddinFramework
Assembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398

Syntax

C#
public virtual bool EA_OnPostNewMethod(
	Repository Repository,
	EventProperties Info
)
Visual Basic
Public Overridable Function EA_OnPostNewMethod ( _
	Repository As Repository, _
	Info As EventProperties _
) As Boolean
Visual C++
public:
virtual bool EA_OnPostNewMethod(
	Repository^ Repository, 
	EventProperties^ Info
)

Parameters

Repository
Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Info
Type: EventProperties
Contains the following EventProperty object for the new method: - MethodID: A long value corresponding to Method.MethodID.

Return Value

Return True if the method has been updated during this notification. Return False otherwise.

See Also