Keyboard Class
Contains static methods for performing keyboard actions.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
| Name | Description | |
|---|---|---|
![]() | Keyboard() | This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the Keyboard class. |
| Name | Description | |
|---|---|---|
![]() ![]() | Instance | Gets or sets the keyboard instance. |
![]() ![]() | SendKeysDelay | Gets or sets the time to wait between sending keystrokes to the application. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases all resources that are used by the current instance of the Keyboard class. |
![]() | Dispose(Boolean) | Releases the unmanaged resources that are used by the Keyboard and optionally releases the managed resources. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | Releases unmanaged resources and performs other cleanup operations before this Keyboard instance is reclaimed by garbage collection.(Overrides Object::Finalize().) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() ![]() | PressModifierKeys(ModifierKeys) | Presses the specified modifier keys without releasing them. |
![]() ![]() | PressModifierKeys(UITestControl^, ModifierKeys) | Presses the specified modifier keys in the given control without releasing them. |
![]() | PressModifierKeysImplementation(UITestControl^, ModifierKeys) | Presses the specified modifier keys without releasing them. |
![]() ![]() | ReleaseModifierKeys(ModifierKeys) | Releases the specified keys that were previously pressed by using the PressModifierKeys method. |
![]() ![]() | ReleaseModifierKeys(UITestControl^, ModifierKeys) | Releases the specified keys that were previously pressed by using the PressModifierKeys method in the given control. |
![]() | ReleaseModifierKeysImplementation(UITestControl^, ModifierKeys) | This API supports the product infrastructure and is not intended to be used directly from your code. Presses the specified modifier keys in the given control without releasing them. |
![]() ![]() | SendKeys(String^) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(String^, Boolean) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(String^, ModifierKeys) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(String^, ModifierKeys, Boolean) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(String^, ModifierKeys, Boolean, Boolean) | Sends keystrokes to the provided control to generate the specified text string using the provided modifier keys and indicators for encoding and unicode. |
![]() ![]() | SendKeys(UITestControl^, String^) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(UITestControl^, String^, Boolean) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(UITestControl^, String^, ModifierKeys) | Sends keystrokes to the provided control to generate the specified text string by using the provided modifier keys. |
![]() ![]() | SendKeys(UITestControl^, String^, ModifierKeys, Boolean) | Sends keystrokes to the provided control to generate the specified text string using the provided modifier keys and encoding indicator. |
![]() ![]() | SendKeys(UITestControl^, String^, ModifierKeys, Boolean, Boolean) | Sends keystrokes to the provided control to generate the specified text string by using the provided modifier keys and indicators for encoding and unicode. |
![]() | SendKeysImplementation(UITestControl^, String^, ModifierKeys, Boolean, Boolean) | |
![]() | ToString() | (Inherited from Object.) |
No content here will be updated; please do not add material here.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



