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

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

Syntax

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

Return Value

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

See Also