共用方式為


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 事件。

適用於

另請參閱