Search
InteractionState Members
Constructors 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

Initializes a new instance of the InteractionState class.

 Public Properties

  Name Description

Action

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

AdjustmentHandle

Gets the adjustment handle being dragged by the user.

CurrentItem

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

CurrentPoint

Gets the current location of the mouse pointer.

Diagram

Gets the current Diagram instance.

InvalidRect

Gets or sets the area that should be repainted.

LinkTarget

Gets or sets the current target node when a link is being modified.

MouseMoved

Gets or sets a value indicating whether the mouse pointer has moved since the user pressed down the mouse button.

SkipSavingState

Gets a value indicating whether diagram items should skip storing their state for subsequent cancel.

StartPoint

Gets the mouse position where the interaction started.

 Public Methods

  Name Description

Cancel

Cancels the user interaction.

CancelNow

Instruct the interaction to terminate on the next pass.

Complete

This method is invoked to complete the interaction, usually when the user releases the left mouse button.

IsAllowed

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

IsCompleting

Returns whether the interaction has been completed successfully.

SetHandleIndex

Sets the adjustment handle tracked by this object to the specified handle.

SetItemDeleted

Notifies the interaction that its associated diagram item has been deleted.

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.

ValidateAndSetCursor

Sets the cursor depending on whether the interaction can be completed at the specified point or not.

 See Also