InkCanvas.SelectionMoved Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs after the user moves a selection of strokes and/or elements.
public:
event EventHandler ^ SelectionMoved;
public event EventHandler SelectionMoved;
member this.SelectionMoved : EventHandler
Public Custom Event SelectionMoved As EventHandler
Public Event SelectionMoved As EventHandler
Event Type
Examples
The following example unselects items on an InkCanvas after the user moves them.
// Unselect the items on the InkCanvas once the user has moved them.
void inkCanvas1_SelectionMoved(object sender, EventArgs e)
{
inkCanvas1.Select(null, null);
}
' Unselect the items on the InkCanvas once the user has moved them.
Private Sub inkCanvas1_SelectionMoved(ByVal sender As Object, ByVal e As EventArgs)
inkCanvas1.Select(Nothing, Nothing)
End Sub
Remarks
This event occurs after a selection of strokes and/or elements is moved, but before the stroke or element data is updated to record its new position. Add an event handler to the SelectionMoving event.