SendKeyDown Method
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Informs the view generator about a key down event.
Syntax
public bool SendKeyDown(int keyCode, UserInput.ModifierKeys modifierKeys);Public Function SendKeyDown(keyCode As Integer, modifierKeys As UserInput.ModifierKeys) As BooleanParameters
| Parameter | Description |
|---|---|
| keyCode | Specifies the virtual key code for the pressed key. |
| modifierKeys | Specifies modifier keys. It can be a combination of the ServerVisualization.UserInput.ModifierKeys values. |
Return Value
If the event has been handled, the method returns true. Otherwise, it returns false.
Examples
The following example uses Send Key Down in a focused User Input workflow.
if (userInput.SendKeyDown(10, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift))
{
Console.WriteLine("Send Key Down completed successfully.");
}If userInput.SendKeyDown(10, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift) Then
Console.WriteLine("Send Key Down completed successfully.")
End If