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

适用于

另请参阅