Share via


Keyboard.SendKeys Method

Definition

Overloads

SendKeys(UITestControl, String, ModifierKeys, Boolean, Boolean)
SendKeys(String, ModifierKeys, Boolean, Boolean)
SendKeys(UITestControl, String, ModifierKeys, Boolean)
SendKeys(String, ModifierKeys, Boolean)
SendKeys(UITestControl, String, ModifierKeys)
SendKeys(String)
SendKeys(String, ModifierKeys)
SendKeys(String, Boolean)
SendKeys(UITestControl, String)
SendKeys(UITestControl, String, Boolean)

SendKeys(UITestControl, String, ModifierKeys, Boolean, Boolean)

public:
 static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * System.Windows.Input.ModifierKeys * bool * bool -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, modifierKeys As ModifierKeys, isEncoded As Boolean, isUnicode As Boolean)

Parameters

control
UITestControl
text
String
modifierKeys
ModifierKeys
isEncoded
Boolean
isUnicode
Boolean

Applies to

SendKeys(String, ModifierKeys, Boolean, Boolean)

public:
 static void SendKeys(System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
public static void SendKeys (string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
static member SendKeys : string * System.Windows.Input.ModifierKeys * bool * bool -> unit
Public Shared Sub SendKeys (text As String, modifierKeys As ModifierKeys, isEncoded As Boolean, isUnicode As Boolean)

Parameters

text
String
modifierKeys
ModifierKeys
isEncoded
Boolean
isUnicode
Boolean

Applies to

SendKeys(UITestControl, String, ModifierKeys, Boolean)

public:
 static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * System.Windows.Input.ModifierKeys * bool -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, modifierKeys As ModifierKeys, isEncoded As Boolean)

Parameters

control
UITestControl
text
String
modifierKeys
ModifierKeys
isEncoded
Boolean

Applies to

SendKeys(String, ModifierKeys, Boolean)

public:
 static void SendKeys(System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded);
public static void SendKeys (string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded);
static member SendKeys : string * System.Windows.Input.ModifierKeys * bool -> unit
Public Shared Sub SendKeys (text As String, modifierKeys As ModifierKeys, isEncoded As Boolean)

Parameters

text
String
modifierKeys
ModifierKeys
isEncoded
Boolean

Applies to

SendKeys(UITestControl, String, ModifierKeys)

public:
 static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, System.Windows.Input.ModifierKeys modifierKeys);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * System.Windows.Input.ModifierKeys -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, modifierKeys As ModifierKeys)

Parameters

control
UITestControl
text
String
modifierKeys
ModifierKeys

Applies to

SendKeys(String)

public:
 static void SendKeys(System::String ^ text);
public static void SendKeys (string text);
static member SendKeys : string -> unit
Public Shared Sub SendKeys (text As String)

Parameters

text
String

Applies to

SendKeys(String, ModifierKeys)

public:
 static void SendKeys(System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys);
public static void SendKeys (string text, System.Windows.Input.ModifierKeys modifierKeys);
static member SendKeys : string * System.Windows.Input.ModifierKeys -> unit
Public Shared Sub SendKeys (text As String, modifierKeys As ModifierKeys)

Parameters

text
String
modifierKeys
ModifierKeys

Applies to

SendKeys(String, Boolean)

public:
 static void SendKeys(System::String ^ text, bool isEncoded);
public static void SendKeys (string text, bool isEncoded);
static member SendKeys : string * bool -> unit
Public Shared Sub SendKeys (text As String, isEncoded As Boolean)

Parameters

text
String
isEncoded
Boolean

Applies to

SendKeys(UITestControl, String)

public:
 static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String)

Parameters

control
UITestControl
text
String

Applies to

SendKeys(UITestControl, String, Boolean)

public:
 static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, bool isEncoded);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, bool isEncoded);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * bool -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, isEncoded As Boolean)

Parameters

control
UITestControl
text
String
isEncoded
Boolean

Applies to