InkCanvas.SelectionMoved Zdarzenie

Definicja

Występuje po tym, jak użytkownik przenosi wybór pociągnięć i/lub elementów.

public:
 event EventHandler ^ SelectionMoved;
public event EventHandler SelectionMoved;
member this.SelectionMoved : EventHandler 
Public Custom Event SelectionMoved As EventHandler 
Public Event SelectionMoved As EventHandler 

Typ zdarzenia

Przykłady

Poniższy przykład usuwa zaznaczenie elementów po InkCanvas przesunięciu ich przez użytkownika.

// 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

Uwagi

To zdarzenie występuje po przeniesieniu zaznaczenia pociągnięć i/lub elementów, ale przed zaktualizowaniem danych pociągnięcia lub elementu w celu zarejestrowania nowej pozycji. Dodaj procedurę obsługi zdarzeń SelectionMoving do zdarzenia.

Dotyczy

Zobacz też