Enterprise Architect Add-in Framework Documentation
EA_OnPreDeleteDiagram notifies Add-Ins that an diagram is to be deleted from the model. It enables Add-Ins to permit or deny deletion of the diagram. This event occurs when a user attempts to permanently delete a diagram from the Project Browser. The notification is provided immediately before the diagram is deleted, so that the Add-In can disable deletion of the diagram.

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

Syntax

C#
public virtual bool EA_OnPreDeleteDiagram(
	Repository Repository,
	EventProperties Info
)
Visual Basic
Public Overridable Function EA_OnPreDeleteDiagram ( _
	Repository As Repository, _
	Info As EventProperties _
) As Boolean
Visual C++
public:
virtual bool EA_OnPreDeleteDiagram(
	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 diagram to be deleted: - DiagramID: A long value corresponding to Diagram.DiagramID.

Return Value

Return True to enable deletion of the diagram from the model. Return False to disable deletion of the diagram.

See Also