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

Custom

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

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 default response to users actions.

DrawContainers

Drawing with the mouse creates ContainerNode instances.

DrawControls

Drawing with the mouse creates ControlHost instances.

DrawLinks

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

DrawShapes

Drawing with the mouse creates ShapeNode instances.

DrawTables

Drawing with the mouse creates TableNode instances.

DrawTreeViews

Drawing with the mouse creates TreeViewNode instances.

LinkContainers

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

LinkControls

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

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.

LinkTreeViews

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

Magnify

Dragging with the mouse displays the magnifier tool.

Modify

Objects can be selected and modified. New objects cannot be created.

Pan

Dragging with the mouse pans the view. This requires that the Diagram is contained in a ScrollViewer.

SelectOnly

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

 Remarks

Set the Behavior property to specify how MindFusion.Diagramming 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