This documentation is archived and is not being maintained.
Keyboard Class
Visual Studio 2010
Provides static methods for performing automated keyboard actions.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
The Keyboard type exposes the following members.
| 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 | Determines whether the specified Object is equal to the current 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 | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (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 | 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 | Infrastructure. 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(UITestControl, String) | Sends keystrokes to generate the specified text string. |
![]() ![]() | SendKeys(String, ModifierKeys, Boolean) | 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(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, 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 | |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Show:
