Share via


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)

Syntax

'Declaration
Public Property MouseButton As MouseButtons
public MouseButtons MouseButton { get; set; }
public:
property MouseButtons MouseButton {
    MouseButtons get ();
    void set (MouseButtons value);
}
member MouseButton : MouseButtons with get, set
function get MouseButton () : MouseButtons 
function set MouseButton (value : MouseButtons)

Property Value

Type: MouseButtons
The mouse button that is pressed.

Remarks

Setting this property raises the PropertyChanged event.

.NET Framework Security

See Also

Reference

DragAction Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

MouseButtons

PropertyChanged