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.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadVirtualKeyboardForm : Component, IComponent, IDisposable, IExtenderProvider
Inheritance: objectMarshalByRefObjectComponentRadVirtualKeyboardForm
Implements:
Constructors
Initializes a new instance of the RadVirtualKeyboardForm component.
public RadVirtualKeyboardForm()
Initializes a new instance of the RadVirtualKeyboardForm component.
public RadVirtualKeyboardForm(IContainer container)
The parent container.
Properties
Gets the VirtualKeyboardForm instance. Creates a new instance if one does not exist.
[Browsable(false)]
public VirtualKeyboardForm KeyboardForm { get; }
Gets or sets the keyboard layout type. Changing this value will automatically update the MainLayoutPanel property with a predefined layout configuration.
public KeyboardLayoutType LayoutType { get; set; }
Gets or sets the VirtualKeyboardLayoutPanel that hosts and arranges VirtualKeyboardLayoutPanel and VirtualKeyboardLayout objects within the virtual keyboard.
[Browsable(false)]
public VirtualKeyboardLayoutPanel MainLayoutPanel { get; set; }
Gets or sets a value indicating whether to automatically position the VirtualKeyboardForm beneath the associated control that receives focus.
[Browsable(true)]
public bool OpenUnderAssociatedControl { get; set; }
Gets or sets a value indicating whether to automatically scale the font size when the KeyboardForm size changes.
public bool ScaleFontOnResize { get; set; }
Gets or sets a value indicating whether the RadVirtualKeyboard will automatically track system language changes and update its layout accordingly.
public bool SynchronizeCultureWithSystem { get; set; }
Gets or sets the theme name applied to the VirtualKeyboardForm.
[Browsable(true)]
public string ThemeName { get; set; }
Gets or sets a value indicating whether to play an audible click sound when a virtual keyboard key is pressed.
public bool UseClickSound { get; set; }
Gets the RadVirtualKeyboard control contained within the KeyboardForm.
[Browsable(false)]
public RadVirtualKeyboard VirtualKeyboard { get; }
Methods
Adds an associated control. When the associated control gains the focus the KeyboardForm will be shown.
public void AddAssociatedControl(Control value)
The control to associate with the virtual keyboard.
Creates a VirtualKeyboardForm.
protected virtual VirtualKeyboardForm CreateVirtualKeyboardForm()
The created form.
Gets the AssociatedKeyboardType of a given control.
public AssociatedKeyboardType GetAssociatedKeyboardType(Control control)
The control.
Returns:The type of association.
Removes an associated control from the virtual keyboard.
public void RemoveAssociatedControl(Control value)
The control to remove from the virtual keyboard association.
Sets AssociatedKeyboardType to a given control.
public void SetAssociatedKeyboardType(Control control, AssociatedKeyboardType value)
The control.
valueAssociatedKeyboardTypeThe type of association.
Shows the KeyboardForm as a non-modal dialog box.
public void Show()
Updates the size and location of the KeyboardForm based on the screen bounds and associated control position.
protected virtual void UpdateKeyboardFormSizeAndLocation(Rectangle associatedControlScreenBounds)
The screen bounds of the associated control.