Table of Contents

Enum DiagramEventName

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

This enumeration specifies the various names for DiagramEvents.

public enum DiagramEventName

Fields

AnimationFinished = 3

A DefaultAnimation just completed.

Do not modify the Diagram or its Model in the event listener.

AnimationStarting = 2

A DefaultAnimation is about to start.

Do not modify the Diagram or its Model in the event listener.

BackgroundContextClicked = 6

A context-click that was not on any Part.

If you make any changes, start and commit your own transaction.

BackgroundDoubleClicked = 5

A double-click that was not on any Part.

If you make any changes, start and commit your own transaction.

BackgroundSingleClicked = 4

A click that was not on any Part.

If you make any changes, start and commit your own transaction.

ChangedSelection = 8

An operation has just changed the Selection collection.

The Subject is the Selection collection. Do not make any changes to the selection or the diagram in the event listener. Note that just setting IsSelected will not raise this event, but tools and commands will.

ChangingSelection = 7

An operation is about to change the Selection collection.

The Subject is the Selection collection. Do not make any changes to the selection or the diagram in the event listener. Note that just setting IsSelected will not raise this event, but tools and commands will.

ClipboardChanged = 9

Parts have been copied to the clipboard by CopySelection().

The Subject is the collection of Parts. If you make any changes, start and commit your own transaction.

ClipboardPasted = 10

Parts have been copied from the clipboard into the Diagram by PasteSelection(Point?).

The Subject is the Selection, and this is called within a transaction.

DocumentBoundsChanged = 11

The area of the diagram's Parts, DocumentBounds, has changed.

The Parameter is the old Rect.

ElementContextClicked = 23

A context-click that occurred on a GraphObject.

The Subject is the GraphObject. If you make any changes, start and commit your own transaction.

ElementDoubleClicked = 22

A double-click that occurred on a GraphObject.

The Subject is the GraphObject. If you make any changes, start and commit your own transaction.

ElementSingleClicked = 21

A click that occurred on a GraphObject.

The Subject is the GraphObject. If you make any changes, start and commit your own transaction.

ExternalElementsDropped = 12

Parts have been copied into the Diagram by drag-and-drop from outside of the Diagram.

The Subject is the set of Parts that were dropped (which is also the Selection), the Parameter is the source Diagram, and this is called within a transaction. If you choose, you can cancel the drop by executing:

e.Diagram.ToolManager.DraggingTool.TransactionResult = null;
GainedFocus = 13

The diagram has gained keyboard focus, such as after a call to Focus().

InitialAnimationStarting = 1

The initial DefaultAnimation is about to start.

This can be useful for customizing the initial animation, see InitialAnimationStyle.

InitialLayoutCompleted = 14

The whole diagram layout has updated for the first time since a major change to the Diagram, such as replacing the Model.

If you make any changes, you do not need to perform a transaction.

LayoutCompleted = 15

The whole diagram layout has just been updated.

If you make any changes, you do not need to perform a transaction.

LinkDrawn = 16

The user has just created a new Link using LinkingTool.

The Subject is the new Link, and this is called within a transaction.

LinkRelinked = 17

The user has just reconnected an existing Link using RelinkingTool or DraggingTool.

The Subject is the modified Link, the Parameter is the GraphObject port that the link was disconnected from, and this is called within a transaction.

LinkReshaped = 18

The user has just rerouted an existing Link using LinkReshapingTool.

The Subject is the modified Link, the Parameter is the list of Points of the link's original route, and this is called within a transaction.

LostFocus = 19

The diagram has lost keyboard focus, a.k.a. "blur".

Modified = 20

The IsModified property has been set to a new value -- useful for marking a window as having been modified since the last save.

Do not modify the Diagram or its Model in the event listener.

PartCreated = 24

The user inserted a new Part by ClickCreatingTool.

The Subject is the new Part, and this is called within a transaction.

PartResized = 25

The user has changed the size of a GraphObject by ResizingTool.

The Subject is the GraphObject, the Parameter is the original Size, and this is called within a transaction.

PartRotated = 26

The user has changed the angle of a GraphObject by RotatingTool.

The Subject is the GraphObject, the Parameter is the original angle in degrees, and this is called within a transaction.

SelectionCopied = 28

The user has copied selected Parts by DraggingTool.

The Subject is Set of the newly copied Parts, and this is called within a transaction.

SelectionDeleted = 29

The user has deleted selected Parts by DeleteSelection().

The Subject is the collection of Parts that were deleted, and this is called within a transaction.

SelectionDeleting = 30

The user is about to delete selected Parts by DeleteSelection().

The Subject is the Selection collection of Parts to be deleted, and this is called within a transaction.

SelectionGrouped = 31

The user has made a new Group out of the selected Parts by GroupSelection().

The Subject is the new Group, and this is called within a transaction.

SelectionMoved = 27

The user has moved selected Parts by DraggingTool.

The Subject is a Set of the moved Parts, and this is called within a transaction.

SelectionUngrouped = 32

The user has removed a selected Group but kept its members by UngroupSelection(Group).

the Subject is the collection of Groups that were ungrouped, the Parameter is the collection of former member Parts that were ungrouped, and this is called within a transaction.

SubGraphCollapsed = 33

The user has collapsed selected Groups by CollapseSubGraph(Group).

The Subject is the collection of Groups that were collapsed, and this is called within a transaction.

SubGraphExpanded = 34

The user has expanded selected Groups by ExpandSubGraph(Group).

The Subject is the collection of Groups that were expanded, and this is called within a transaction.

TextEdited = 35

The user has changed the string value of a TextBlock by TextEditingTool.

The Subject is the edited TextBlock, the Parameter is the original string, and this is called within a transaction.

TreeCollapsed = 36

The user has collapsed selected Nodes with subtrees by CollapseTree(Node).

The Subject is the collection of Nodes that were collapsed, and this is called within a transaction.

TreeExpanded = 37

The user has expanded selected Nodes with subtrees by ExpandTree(Node).

The Subject is the collection of Nodes that were expanded, and this is called within a transaction.

ViewportBoundsChanged = 38

The visible area of the Diagram, ViewportBounds, has changed.

The Subject is an object whose "Scale" property is the old Scale value, whose "Position" property is the old Position value, and whose "Bounds" property is the old ViewportBounds value. The Parameter is also the old ViewportBounds Rect.