DiagramLite Programmer's Guide
InteractionState Members
Constructors Fields Properties Methods
 


Encapsulates the current state of user interaction with the control.

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

 Public Constructors

  Name Description

InteractionState

Overloaded.  

 Protected Fields

  Name Description

originalStates

Contains the original state of the items that are being modified.

 Public Properties

  Name Description

Action

Gets or sets the type of Action currently performed by the user in the Diagram.

AdjustmentHandle

Gets or sets the index of the selection handle to be modified.

CurrentItem

Gets a reference to the DiagramItem to be created or modified.

CurrentPoint

Gets or sets the current location of the mouse pointer.

DeltaX

Gets the horizontal distance the mouse has been moved since the modification began.

DeltaY

Gets the vertical distance the mouse has been moved since the modification began.

OriginalStates

Stores the original state of items from before the modification began.

StartPoint

Gets or sets the mouse position where the interaction starts.

 Public Methods

  Name Description

Cancel

Cancels the user interaction.

CancelNow

Instruct the interaction to terminate on the next pass.

Commit

Invoked to commit the changes made by the user.

IsAllowed

Checks whether the current interaction can be completed at the specified point.

ShouldCancelDrag

Gets a value indicating whether the interaction should terminate on the next pass.

Start

This method is invoked in the beginning of the interaction, usually when the user presses the left mouse button over a modification handle.

Update

This method is invoked to update the interaction state, usually in response to the user moving the mouse after the modification has started.

 See Also

InteractionState Class
MindFusion.Diagramming Namespace