The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
UITestActionExecutor::PressModifierKeys Method (UITechnologyElement^, ModifierKeys)
Presses the given modifier keys without releasing it. To release the modifier keys, explicit call to ReleaseModifierKeysImplementation should be made.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
public: virtual void PressModifierKeys( UITechnologyElement^ control, ModifierKeys keys ) abstract
Parameters
- control
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::UITechnologyElement^
The control to which the key press (down) is sent.
- keys
-
Type:
System.Windows.Input::ModifierKeys
The modifier keys to press.
Show: