New to Telerik UI for WinFormsStart a free 30-day trial

IKey

Interface

An interface that defines all necessary members for each key added to the RadVirtualKeyboard.

Definition

Namespace:Telerik.WinControls.VirtualKeyboard

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface IKey

Derived Classes: EmptyKeyKeyNumpadKeyToggleKey

Properties

Gets or sets the font scale coefficient, used when key is larger or smaller than the KeyDefaultSize.

C#
float FontScale { get; set; }

Gets or sets the logical key height.

C#
float KeyHeight { get; set; }

Gets or sets the associated key info object.

C#
KeyInfo KeyInfo { get; set; }

Gets or sets the logical key bounds.

C#
RectangleF KeyRectangle { get; set; }

Gets the type of the key.

C#
KeyType KeyType { get; }

Gets or sets the logical key width.

C#
float KeyWidth { get; set; }

Gets the owner element used to send the keys.

C#
IVirtualKeyboardKeyInputSender Owner { get; }

Gets the virtual key code.

C#
int VirtualKey { get; }

Methods

Arranges the key in the specified rectangle.

C#
void ArrangeKey(RectangleF rectangle)
Parameters:rectangleRectangleF

The layout rectangle.

Sends a virtual key code or string.

C#
void SendKey()

Updates key text and other necessary styles.

C#
void UpdateKey()