Search
Behavior Enumeration
See Also
 





Defines values that specify how the component responds to actions performed by the user.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public enum Behavior

Visual Basic  Copy Code

Public Enum Behavior

 Members

  Member name Description

Modify

Items can be selected and modified. New items cannot be created.

DrawShapes

Drawing with the mouse creates ShapeNode instances.

DrawLinks

Drawing started over a node creates a DiagramLink. Otherwise a lasso rectangle is displayed allowing the selection of items.

LinkShapes

A mode that is suitable for creating flowcharts and process diagrams. Drawing over empty document area creates a ShapeNode instance. Drawing started over a node creates a DiagramLink.

LinkTables

A mode that is suitable for creating entity-relationship diagrams. Drawing over empty document area creates a TableNode instance. Drawing started over a node creates a DiagramLink.

DrawTables

Drawing with the mouse creates TableNode instances.

DrawControls

Drawing with the mouse creates ControlNode instances.

LinkControls

Drawing over empty document area creates a ControlNode instance. Drawing started over a node creates a DiagramLink.

DoNothing

The control ignores users actions with the mouse, but raises the appropriate mouse events. This mode allows applications to implement their own mouse-drawing behavior, disabling the MvcDiagram default response to users actions.

Custom

Specifies that user input will be handled by the BehaviorBase-derived object assigned to CustomBehavior.

DrawContainers

Drawing with the mouse creates ContainerNode instances.

LinkContainers

Drawing over empty document area creates a ContainerNode instance. Drawing started over a node creates a DiagramLink.

Pan

Dragging with the mouse pans the view.

DrawTreeViews

Drawing with the mouse creates TreeViewNode instances.

LinkTreeViews

Drawing over empty document area creates a TreeViewNode instance. Drawing started over a node creates a DiagramLink.

DrawSvgNodes

Drawing with the mouse creates SvgNode instances.

LinkSvgNodes

Drawing over empty document area creates an SvgNode instance. Drawing started over a node creates a DiagramLink.

SelectOnly

Allow only selection of existing items. Modifying them or drawing new ones is disabled.

Magnify

Dragging the mouse magnifies the view. Interactive creation or modification of items is disabled.

DrawVisioNodes

Drawing with the mouse creates VisioNode instances.

LinkVisioNodes

Drawing over empty document area creates a VisioNode instance. Drawing started over a node creates a DiagramLink.

DrawBarcodes

Drawing with the mouse creates BarcodeNode instances.

LinkBarcodes

Drawing over empty document area creates a BarcodeNode instance. Drawing started over a node creates a DiagramLink.

DrawFreeForms

Drawing with the mouse creates FreeFormNode instances.

LinkFreeForms

Drawing over empty document area creates a FreeFormNode instance. Drawing started over a node creates a DiagramLink.

DrawFreeShapes

Points from user input are shown using a FreeFormNode instance. Once the user finishes drawing, the FreeFormNode is replaced by a ShapeNode with a matching shape from Diagram.FreeFormTargets list.

LinkFreeShapes

Points from user input are shown using a FreeFormNode instance. Once the user finishes drawing, the FreeFormNode is replaced by a ShapeNode with a matching shape from Diagram.FreeFormTargets list. Drawing started over a node creates a DiagramLink.

PanAndModify

Items can be selected and modified. New items cannot be created, and dragging without grabbing an adjustment handle pans the view.

MoveNodes

Dragging with the mouse moves the node under mouse pointer.

Zoom

Dragging with the mouse draws a lasso tool that zooms the diagram view to selected rectangular area.

MoveLabels

Dragging with the mouse moves the label under mouse pointer.

 Remarks

Set the Behavior property to specify how MvcDiagram interprets user's actions. In all modes:

  • single clicking selects the item under the mouse pointer and make it the ActiveItem;
  • dragging while CTRL is pressed creates multiple selection;
  • dragging while ALT is pressed pans the view;

 See Also