Encapsulates the current state of user interaction with the control.
The following tables list the members exposed by the InteractionState type.
Name | Description | |
---|---|---|
Initializes a new instance of the InteractionState class. |
Name | Description | |
---|---|---|
Gets the type of Action currently performed by the user in the Diagram. |
||
Gets the adjustment handle being dragged by the user. |
||
Gets a reference to the DiagramItem to be created or modified. |
||
Gets the current location of the mouse pointer. |
||
Gets the current Diagram instance. |
||
Gets or sets the area that should be repainted. |
||
Gets or sets the current target node when a link is being modified. |
||
Gets or sets a value indicating whether the mouse pointer has moved since the user pressed down the mouse button. |
||
Gets a value indicating whether diagram items should skip storing their state for subsequent cancel. |
||
Gets the mouse position where the interaction started. |
Name | Description | |
---|---|---|
Cancels the user interaction. |
||
Instruct the interaction to terminate on the next pass. |
||
This method is invoked to complete the interaction, usually when the user releases the left mouse button. |
||
Checks whether the current interaction can be completed at the specified point. |
||
Returns whether the interaction has been completed successfully. |
||
Sets the adjustment handle tracked by this object to the specified handle. |
||
Notifies the interaction that its associated diagram item has been deleted. |
||
Gets a value indicating whether the interaction should terminate on the next pass. |
||
This method is invoked in the beginning of the interaction, usually when the user presses the left mouse button over a modification handle. |
||
This method is invoked to update the interaction state, usually in response to the user moving the mouse after the modification has started. |
||
Sets the cursor depending on whether the interaction can be completed at the specified point or not. |