Keyboard Class

Contains static methods for performing keyboard actions.

Inheritance Hierarchy

Object
Microsoft.VisualStudio.TestTools.UITesting.Keyboard

Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assemblies: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Class Keyboard _
    Implements IDisposable
[CLSCompliantAttribute(true)]
public class Keyboard : IDisposable
[CLSCompliantAttribute(true)]
public ref class Keyboard : IDisposable
[<CLSCompliantAttribute(true)>]
type Keyboard =  
    class 
        interface IDisposable 
    end
public class Keyboard implements IDisposable

The Keyboard type exposes the following members.

Constructors

Name Description
Protected method Keyboard

Top

Properties

Name Description
Public propertyStatic member Instance
Public propertyStatic member SendKeysDelay

Top

Methods

Name Description
Public method Dispose()
Protected method Dispose(Boolean)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize (Overrides Object.Finalize.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member PressModifierKeys(ModifierKeys)
Public methodStatic member PressModifierKeys(ModifierKeys)
Public methodStatic member PressModifierKeys(UITestControl, ModifierKeys)
Public methodStatic member PressModifierKeys(UITestControl, ModifierKeys)
Protected method PressModifierKeysImplementation(UITestControl, ModifierKeys)
Protected method PressModifierKeysImplementation(UITestControl, ModifierKeys)
Public methodStatic member ReleaseModifierKeys(ModifierKeys)
Public methodStatic member ReleaseModifierKeys(ModifierKeys)
Public methodStatic member ReleaseModifierKeys(UITestControl, ModifierKeys)
Public methodStatic member ReleaseModifierKeys(UITestControl, ModifierKeys)
Protected method ReleaseModifierKeysImplementation(UITestControl, ModifierKeys)
Protected method ReleaseModifierKeysImplementation(UITestControl, ModifierKeys)
Public methodStatic member SendKeys(String)
Public methodStatic member SendKeys(String, ModifierKeys)
Public methodStatic member SendKeys(String, Boolean)
Public methodStatic member SendKeys(String, ModifierKeys)
Public methodStatic member SendKeys(UITestControl, String)
Public methodStatic member SendKeys(String, ModifierKeys, Boolean)
Public methodStatic member SendKeys(String, ModifierKeys, Boolean)
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys)
Public methodStatic member SendKeys(UITestControl, String, Boolean)
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys)
Public methodStatic member SendKeys(String, ModifierKeys, Boolean, Boolean)
Public methodStatic member SendKeys(String, ModifierKeys, Boolean, Boolean)
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys, Boolean)
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys, Boolean)
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys, Boolean, Boolean)
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys, Boolean, Boolean)
Protected method SendKeysImplementation(UITestControl, String, ModifierKeys, Boolean, Boolean)
Protected method SendKeysImplementation(UITestControl, String, ModifierKeys, Boolean, Boolean)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

No content here will be updated; please do not add material here.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace