InkCanvas.SelectionMoved イベント

定義

選択されているストロークや要素が、ユーザーによって移動された後に発生します。

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

イベントの種類

次の例では、ユーザーが項目を移動した後に、 の InkCanvas 項目の選択を解除します。

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

注釈

このイベントは、ストロークや要素の選択が移動された後、ストロークまたは要素データが更新されて新しい位置を記録する前に発生します。 イベントにイベント ハンドラーを SelectionMoving 追加します。

適用対象

こちらもご覧ください