Class RadVirtualKeyboardForm
Represents a toolbox component that provides virtual keyboard functionality by associating a VirtualKeyboardForm with any focusable control or displaying it as a standalone form for keyboard input.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadVirtualKeyboardForm : Component, IExtenderProvider
Constructors
RadVirtualKeyboardForm()
Initializes a new instance of the RadVirtualKeyboardForm component.
Declaration
public RadVirtualKeyboardForm()
RadVirtualKeyboardForm(IContainer)
Initializes a new instance of the RadVirtualKeyboardForm component.
Declaration
public RadVirtualKeyboardForm(IContainer container)
Parameters
System.ComponentModel.IContainer
container
The parent container. |
Properties
KeyboardForm
Gets the VirtualKeyboardForm instance. Creates a new instance if one does not exist.
Declaration
public VirtualKeyboardForm KeyboardForm { get; }
Property Value
VirtualKeyboardForm
|
LayoutType
Gets or sets the keyboard layout type. Changing this value will automatically update the MainLayoutPanel property with a predefined layout configuration.
Declaration
public KeyboardLayoutType LayoutType { get; set; }
Property Value
KeyboardLayoutType
|
MainLayoutPanel
Gets or sets the VirtualKeyboardLayoutPanel that hosts and arranges VirtualKeyboardLayoutPanel and VirtualKeyboardLayout objects within the virtual keyboard.
Declaration
public VirtualKeyboardLayoutPanel MainLayoutPanel { get; set; }
Property Value
VirtualKeyboardLayoutPanel
|
OpenUnderAssociatedControl
Gets or sets a value indicating whether to automatically position the VirtualKeyboardForm beneath the associated control that receives focus.
Declaration
public bool OpenUnderAssociatedControl { get; set; }
Property Value
System.Boolean
|
ScaleFontOnResize
Gets or sets a value indicating whether to automatically scale the font size when the KeyboardForm size changes.
Declaration
public bool ScaleFontOnResize { get; set; }
Property Value
System.Boolean
|
SynchronizeCultureWithSystem
Gets or sets a value indicating whether the RadVirtualKeyboard will automatically track system language changes and update its layout accordingly.
Declaration
public bool SynchronizeCultureWithSystem { get; set; }
Property Value
System.Boolean
|
ThemeName
Gets or sets the theme name applied to the VirtualKeyboardForm.
Declaration
public string ThemeName { get; set; }
Property Value
System.String
|
UseClickSound
Gets or sets a value indicating whether to play an audible click sound when a virtual keyboard key is pressed.
Declaration
public bool UseClickSound { get; set; }
Property Value
System.Boolean
|
VirtualKeyboard
Gets the RadVirtualKeyboard control contained within the KeyboardForm.
Declaration
public RadVirtualKeyboard VirtualKeyboard { get; }
Property Value
RadVirtualKeyboard
|
Methods
AddAssociatedControl(Control)
Adds an associated control. When the associated control gains the focus the KeyboardForm will be shown.
Declaration
public void AddAssociatedControl(Control value)
Parameters
System.Windows.Forms.Control
value
The control to associate with the virtual keyboard. |
CreateVirtualKeyboardForm()
Creates a VirtualKeyboardForm.
Declaration
protected virtual VirtualKeyboardForm CreateVirtualKeyboardForm()
Returns
VirtualKeyboardForm
The created form. |
GetAssociatedKeyboardType(Control)
Gets the AssociatedKeyboardType of a given control.
Declaration
public AssociatedKeyboardType GetAssociatedKeyboardType(Control control)
Parameters
System.Windows.Forms.Control
control
The control. |
Returns
AssociatedKeyboardType
The type of association. |
RemoveAssociatedControl(Control)
Removes an associated control from the virtual keyboard.
Declaration
public void RemoveAssociatedControl(Control value)
Parameters
System.Windows.Forms.Control
value
The control to remove from the virtual keyboard association. |
SetAssociatedKeyboardType(Control, AssociatedKeyboardType)
Sets AssociatedKeyboardType to a given control.
Declaration
public void SetAssociatedKeyboardType(Control control, AssociatedKeyboardType value)
Parameters
System.Windows.Forms.Control
control
The control. |
AssociatedKeyboardType
value
The type of association. |
Show()
UpdateKeyboardFormSizeAndLocation(Rectangle)
Updates the size and location of the KeyboardForm based on the screen bounds and associated control position.
Declaration
protected virtual void UpdateKeyboardFormSizeAndLocation(Rectangle associatedControlScreenBounds)
Parameters
System.Drawing.Rectangle
associatedControlScreenBounds
The screen bounds of the associated control. |