語言

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 程式。

適用於

另請參閱