We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

DragDropAction.MouseButton Property

Gets or sets which button on the mouse causes the drag-and-drop operation.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

public MouseButtons MouseButton { get; set; }

Property Value

Type: System.Windows.Forms.MouseButtons
The mouse button indicator.

Setting this property raises the PropertyChanged event.