The following events under diagram.model.eventsink has an option to cancel.
The NodeCollectionChanged event is raised when the node collection contained in the model is changed (added/removed).
The NodeCollectionChanging event is raised while modifying the model’s node collection.
This ConnectionsChanged event is raised when the connections between the nodes are modified.
The ConnectionsChanging event is raised while modifying connections between the nodes.
The LabelsChanged event is raised when labels are added.
The PropertyChanging event is raised while modifying the model’s property.
The FlipChanging event is raised while the node is inverted using Flip property.
The PinOffsetChanging event is raised while modifying the offset of the pinpoint.
The PinPointChanging event is raised while changing the node’s pinpoint.
The PortsChanged event is raised when the ports are added or changed.
The RotationChanging event is raised when the node is rotating.
The SizeChanging event is raised when the size of the node or connector is modified.
The VertexChanging event is raised when the vertex of the node is changed.
The ZorderChanging event is raised when Zorder of the node is changed. When the node order is changed from front-to-back or from back-to-front, the ZorderChanging event is raised.
The following code example is used to cancel the events.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|