DiagramLite Programmer's Guide
BehaviorBase Members
Constructors Properties Methods
 


An abstract base class for types that define how the control reacts to users' actions with a mouse or other pointing devices.

The following tables list the members exposed by the BehaviorBase type.

 Public Constructors

  Name Description

BehaviorBase

Initializes a new instance of the BehaviorBase class.

 Protected Properties

  Name Description

InteractionState

Gets or sets an InteractionState instance that tracks the modification currently being done on an item.

MouseDownPoint

Gets or sets the position of the mouse when its button has been pressed.

 Inherited Protected Properties

  Name Description

Diagram

The Diagram object that is being modified. (Inherited from Interaction.)

 Public Methods

  Name Description

SetMouseCursor

Invoked while the mouse is moved to let Behavior objects set the mouse cursor depending on the context.

StartDraw

Invoked when a user presses the left mouse button inside the diagram drawing area.

 Protected Methods

  Name Description

CreateLink

Creates a link of the type appropriate for the current behavior.

OnMouseDown

Interaction.OnMouseDown override.

OnMouseMove

Raises the MouseMove event.

OnMouseUp

Interaction.OnMouseUp override.

SetModfCursor

Updates the current cursor according to the specified cursor position and diagram state.

StartInteraction

Invoked by the control when the user presses the left mouse button.

 Inherited Protected Methods

  Name Description

OnMouseDown

Called when a mouse button is pressed. (Inherited from Interaction.)

OnMouseMove

Called when the mouse pointer is moved over the control. (Inherited from Interaction.)

OnMouseUp

Called when a mouse button is released. (Inherited from Interaction.)

 See Also

BehaviorBase Class
MindFusion.Diagramming Namespace