Partager via


MouseButtons Enumeration

Specifies constants that define which mouse button was pressed.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
<FlagsAttribute> _
Public Enumeration MouseButtons
[ComVisibleAttribute(true)]
[FlagsAttribute]
public enum MouseButtons
[ComVisibleAttribute(true)]
[FlagsAttribute]
public enum class MouseButtons
[<ComVisibleAttribute(true)>]
[<FlagsAttribute>]
type MouseButtons
public enum MouseButtons

Members

Member name Description
Left The left mouse button was pressed.

Middle The middle mouse button was pressed.

None No mouse button was pressed.

Right The right mouse button was pressed.

XButton1 The first XButton mouse button was pressed.

XButton2 The second XButton mouse button was pressed.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITest.Input Namespace