InkCanvas.SelectionMoved 活动
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在用户移动笔划和/或元素的选择后发生。
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 。