Information
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.

Keyboard Class

 

Contains static methods for performing keyboard actions.

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

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.Keyboard

[CLSCompliantAttribute(true)]
public class Keyboard : IDisposable

NameDescription
System_CAPS_protmethodKeyboard()

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.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticInstance

Gets or sets the keyboard instance.

System_CAPS_pubpropertySystem_CAPS_staticSendKeysDelay

Gets or sets the time to wait between sending keystrokes to the application.

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources that are used by the current instance of the Keyboard class.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources that are used by the Keyboard and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before this Keyboard instance is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticPressModifierKeys(ModifierKeys)

Presses the specified modifier keys without releasing them.

System_CAPS_pubmethodSystem_CAPS_staticPressModifierKeys(UITestControl, ModifierKeys)

Presses the specified modifier keys in the given control without releasing them.

System_CAPS_protmethodPressModifierKeysImplementation(UITestControl, ModifierKeys)

Presses the specified modifier keys without releasing them.

System_CAPS_pubmethodSystem_CAPS_staticReleaseModifierKeys(ModifierKeys)

Releases the specified keys that were previously pressed by using the PressModifierKeys method.

System_CAPS_pubmethodSystem_CAPS_staticReleaseModifierKeys(UITestControl, ModifierKeys)

Releases the specified keys that were previously pressed by using the PressModifierKeys method in the given control.

System_CAPS_protmethodReleaseModifierKeysImplementation(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.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(String)

Sends keystrokes to generate the specified text string.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(String, Boolean)

Sends keystrokes to generate the specified text string.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(String, ModifierKeys)

Sends keystrokes to generate the specified text string.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(String, ModifierKeys, Boolean)

Sends keystrokes to generate the specified text string.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(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.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(UITestControl, String)

Sends keystrokes to generate the specified text string.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(UITestControl, String, Boolean)

Sends keystrokes to generate the specified text string.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(UITestControl, String, ModifierKeys)

Sends keystrokes to the provided control to generate the specified text string by using the provided modifier keys.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(UITestControl, String, ModifierKeys, Boolean)

Sends keystrokes to the provided control to generate the specified text string using the provided modifier keys and encoding indicator.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(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.

System_CAPS_protmethodSendKeysImplementation(UITestControl, String, ModifierKeys, Boolean, Boolean)

System_CAPS_pubmethodToString()

(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.

Return to top
Show: