Raised while the user is moving or resizing multiple selected items, this event lets you cancel the modification.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public event EventHandler<SelectionValidationEventArgs> SelectionModifying |
Visual Basic Copy Code |
---|
Public Event SelectionModifying As EventHandler(Of SelectionValidationEventArgs) |
SelectionModifying event handlers receive an argument of type SelectionValidationEventArgs. The following SelectionValidationEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
Gets the adjustment handle being moved by the user. | |
Gets or sets a value indicating whether to prevent the user from completing the operation. | |
Call this method to immediately stop the modification. | |
Gets the current mouse pointer position. |
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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |