Class ToggleKeyFactory
A factory used to create toggle key instances.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: Telerik.WinControls.UI.dll
Syntax
public class ToggleKeyFactory : IKeyFactory
Constructors
ToggleKeyFactory()
Declaration
public ToggleKeyFactory()
Methods
CreateKey(Int32, KeyType, Double, Double, Boolean, Boolean)
Creates a key that sends a virtual key code when pressed.
Declaration
public virtual IKey CreateKey(int keyCode, KeyType keyType = KeyType.Modifier, double width = 1, double height = 1, bool sharpStyle = false, bool showSecondaryText = false)
Parameters
System. The virtual key code. |
Key The type of the key. |
System. The logical width of key. |
System. The logical height of key. |
System. Indicates whether the key has more noticeable(sharp) style. |
System. Indicates whether to show the secondary text element. |
Returns
Implements
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
public virtual 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. The virtual key code of active state. |
System. The text in active state. |
System. The virtual key code in alternate mode. |
System. The text in alternate state. |
System. The logical width of key. |
System. The logical height of key. |
System. Indicates whether the key has more noticeable(sharp) style. |
System. The font specified to the key element in active state. |
System. The font specified to the key element in alternate state. |
Returns
Implements
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
public virtual IKey CreateSpecialKey(int keyCode, string displayText, KeyType keyType = KeyType.Modifier, double width = 1, double height = 1, bool sharpStyle = false, Font font = null)
Parameters
System. The virtual key code. |
System. The display text. |
Key The type of the key. |
System. The logical width of key. |
System. The logical height of key. |
System. Indicates whether the key has more noticeable(sharp) style. |
System. The font specified to the key element. |