Search
DiagramBase.GroupDestroyed Event
See Also
 





Raised when a Group object is destroyed.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public event EventHandler<GroupEventArgs> GroupDestroyed

Visual Basic  Copy Code

Public Event GroupDestroyed As EventHandler(Of GroupEventArgs)

 Event Data

GroupDestroyed event handlers receive an argument of type GroupEventArgs. The following GroupEventArgs members provide information relevant to the event:

Member name

Description

Group

The Group that has been destroyed.

 Remarks

A group can be destroyed in several ways:

  • by removing it from the diagram's Groups collection.
  • by deleting the group's MainItem.
  • in case the main item is a link, if the control point or segment to which subordinated items are attached is removed. That could happen if link's Shape or SegmentCount properties change.

When a group is destroyed, by default the group items are not deleted automatically. You could delete such items from the GroupDestroyed handler, or enable AutoDeleteItems to delete them automatically when the group is destroyed.

 See Also