语言

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 。

适用于

另请参阅