Share via


Keyboard.PressModifierKeys Method (ModifierKeys)

Presses the specified modifier keys without releasing them.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Sub PressModifierKeys ( _
    keys As ModifierKeys _
)
public static void PressModifierKeys(
    ModifierKeys keys
)
public:
static void PressModifierKeys(
    ModifierKeys keys
)
static member PressModifierKeys : 
        keys:ModifierKeys -> unit
public static function PressModifierKeys(
    keys : ModifierKeys
)

Parameters

  • keys
    Type: ModifierKeys

    The sum of one or more values of the ModifierKeys enumeration.

.NET Framework Security

See Also

Reference

Keyboard Class

PressModifierKeys Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace

ModifierKeys

ReleaseModifierKeys