InfoConnect for Airlines
Contains(Keys) Method
Example 


The key sequence to query for.
Returns whether the current keyboard map has a mapping for a specified key combination.
Syntax
'Declaration
 
Public Overloads Function Contains( _
   ByVal key As Keys _
) As Boolean
'Usage
 
Dim instance As KeyboardMapper
Dim key As Keys
Dim value As Boolean
 
value = instance.Contains(key)
public bool Contains( 
   Keys key
)

Parameters

key
The key sequence to query for.

Return Value

True if the current keyboard map contains a mapping for key, false if not.
Remarks
This method only works for non-extended keys.
Example
private IUtsTerminal terminal;
private IKeyboardMapper mapper;
            
public void ContainsMap(Keys key)
{
   if(terminal != null)
   {
      mapper = terminal.KeyboardMapper;
      bool Iscontain = mapper.Contains(key);
   }
   else
      Console.Writeline("No terminal exists.");
}
See Also