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

DragAction.MouseButton Property

Gets or sets a value that indicates which mouse button is pressed.

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 that is pressed.

Setting this property raises the PropertyChanged event.