预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

EA_OnPostNewMethod

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 Browser window, 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.

Syntax

Function EA_OnPostNewMethod (Repository As EA.Repository, Info As EA.EventProperties) As Boolean
The EA_OnPostNewMethod function syntax contains these parameters.

Parameter

Type

See also

Repository

EA.Repository
Direction: IN
Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Repository Class

Info

EA.EventProperties
Direction: IN
Description: Contains this EventProperty object for the new method:

  • MethodID: A long value corresponding to Method.MethodID

EventProperties Class

Return Value

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

Learn more