Search
DiagramBase.SelectionModifying Event
See Also
 





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

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public event EventHandler<SelectionValidationEventArgs> SelectionModifying

Visual Basic  Copy Code

Public Event SelectionModifying As EventHandler(Of SelectionValidationEventArgs)

 Event Data

SelectionModifying event handlers receive an argument of type SelectionValidationEventArgs. The following SelectionValidationEventArgs members provide information relevant to the event:

Member name

Description

Cancel

Set this property to true to prevent the user from placing the selected items at the current location. That displays the Stop mouse cursor and releasing the button will cancel the operation.

CancelDrag

Call this method to immediately stop the modification.

 Remarks

This event is raised after each mouse movement while modifying a selection of items. Setting Cancel to true will change the mouse cursor to DisallowCursor (a Stop icon by default). The event is raised once again when the mouse button is released. Setting Cancel to true in that case will cancel the modification and return the items to their original position.

Use the Selection property of the Diagram class to access the selected items.

 See Also