使用提供的元素和鼠标按钮设置初始化 DragDropAction 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
public DragDropAction(
UITechnologyElement sourceUIElement,
UITechnologyElement targetUIElement,
MouseButtons mouseButton
)
public:
DragDropAction(
UITechnologyElement^ sourceUIElement,
UITechnologyElement^ targetUIElement,
MouseButtons mouseButton
)
new :
sourceUIElement:UITechnologyElement *
targetUIElement:UITechnologyElement *
mouseButton:MouseButtons -> DragDropAction
Public Sub New (
sourceUIElement As UITechnologyElement,
targetUIElement As UITechnologyElement,
mouseButton As MouseButtons
)
参数
- sourceUIElement
一个 UITechnologyElement 对象,表示在其上开始拖动操作的元素。
- targetUIElement
一个 UITechnologyElement 对象,表示在其上结束拖动操作的元素。
- mouseButton
MouseButtons 枚举的成员,指示按下哪个鼠标按钮。
请参阅
UITechnologyElement
MouseButtons
DragDropAction 重载
DragDropAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首