Interface IKeyFactory
Exposes methods used to create keys for RadVirtualKeyboard.
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: Telerik.WinControls.UI.dll
Syntax
public interface IKeyFactory
Methods
CreateKey(Int32, KeyType, Double, Double, Boolean, Boolean)
Creates a key that sends a virtual key code when pressed.
Declaration
IKey CreateKey(int keyCode, KeyType keyType, double width = 1, double height = 1, bool sharpStyle = false, bool showSecondaryText = false)
Parameters
System.Int32
keyCode
The virtual key code. |
KeyType
keyType
The type of the key. |
System.Double
width
The logical width of key. |
System.Double
height
The logical height of key. |
System.Boolean
sharpStyle
Indicates whether the key has more noticeable(sharp) style. |
System.Boolean
showSecondaryText
Indicates whether to show the secondary text element. |
Returns
IKey
The created IKey instance. |
CreateNumpadKey(Int32, String, Int32, String, Double, Double, Boolean, Font, Font)
Creates a numpad key, which has two different virtual key codes to be sent depending on the state of Numlock key.
Declaration
IKey CreateNumpadKey(int numLockActiveCode, string activeKeyText, int alternateKeyCode, string alternateKeyText, double width = 1, double height = 1, bool sharpStyle = false, Font activeKeyFont = null, Font alternateKeyFont = null)
Parameters
System.Int32
numLockActiveCode
The virtual key code of active state. |
System.String
activeKeyText
The text in active state. |
System.Int32
alternateKeyCode
The virtual key code in alternate mode. |
System.String
alternateKeyText
The text in alternate state. |
System.Double
width
The logical width of key. |
System.Double
height
The logical height of key. |
System.Boolean
sharpStyle
Indicates whether the key has more noticeable(sharp) style. |
System.Drawing.Font
activeKeyFont
The font specified to the key element in active state. |
System.Drawing.Font
alternateKeyFont
The font specified to the key element in alternate state. |
Returns
IKey
The created IKey instance. |
CreateSpecialKey(Int32, String, KeyType, Double, Double, Boolean, Font)
Creates a special key that sends a virtual key code when pressed and displays a text.
Declaration
IKey CreateSpecialKey(int keyCode, string displayText, KeyType keyType, double width = 1, double height = 1, bool sharpStyle = false, Font font = null)
Parameters
System.Int32
keyCode
The virtual key code. |
System.String
displayText
The display text. |
KeyType
keyType
The type of the key. |
System.Double
width
The logical width of key. |
System.Double
height
The logical height of key. |
System.Boolean
sharpStyle
Indicates whether the key has more noticeable(sharp) style. |
System.Drawing.Font
font
The font specified to the key element. |
Returns
IKey
The created IKey instance. |