Search
SelectionMoving Event

Raised while the user is moving multiple selected items, this event lets you cancel the modification.

Syntax

JavaScript  Copy Code

function onSelectionMoving (sender, args)

Event Data

SelectionMoving handlers receive an event object of type SelectionEventArgs.

Remarks

This event is raised after each mouse movement while modifying a selection of items. Call the cancelDrag method to cancel the modification. The event is raised once again when the mouse button is released. Use the Selection class of the Diagram to access the selected items.

To handle the SelectionMoving event, assign the name of the respective JavaScript function (for example 'onSelectionMoving') to the SelectionMovingScript property.

See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
SelectionMoved Event