VirtualKeyboardLayout Class

Defines the keys of a RadzenVirtualKeyboard section as rows of key tokens. A token is either a literal string inserted in the focused input (single characters, units of measure, plant-specific symbols) or one of the special tokens {backspace}, {enter}, {shift}, {space}, {tab}, {clear}, {close} and {decimal} (the culture-aware decimal separator).

Inheritance

Object

VirtualKeyboardLayout

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class VirtualKeyboardLayout

Examples

var layout = VirtualKeyboardLayout.FromRows("7 8 9", "4 5 6", "1 2 3", "0 {decimal} °C", "{clear} {backspace} {enter}");

Constructors

VirtualKeyboardLayoutLink to this section

Defines the keys of a RadzenVirtualKeyboard section as rows of key tokens. A token is either a literal string inserted in the focused input (single characters, units of measure, plant-specific symbols) or one of the special tokens {backspace}, {enter}, {shift}, {space}, {tab}, {clear}, {close} and {decimal} (the culture-aware decimal separator).

Declaration
public VirtualKeyboardLayout()

Properties

AzertyLink to this section

Gets an AZERTY keyboard layout with a digit row.

Declaration
public VirtualKeyboardLayout Azerty { get; }
Property Value
Type Description
VirtualKeyboardLayoutGets an AZERTY keyboard layout with a digit row.

NumpadLink to this section

Gets a numeric keypad layout with a culture-aware decimal separator.

Declaration
public VirtualKeyboardLayout Numpad { get; }
Property Value
Type Description
VirtualKeyboardLayoutGets a numeric keypad layout with a culture-aware decimal separator.

QwertyLink to this section

Gets a QWERTY keyboard layout with a digit row.

Declaration
public VirtualKeyboardLayout Qwerty { get; }
Property Value
Type Description
VirtualKeyboardLayoutGets a QWERTY keyboard layout with a digit row.

QwertzLink to this section

Gets a QWERTZ keyboard layout with a digit row.

Declaration
public VirtualKeyboardLayout Qwertz { get; }
Property Value
Type Description
VirtualKeyboardLayoutGets a QWERTZ keyboard layout with a digit row.

RowsLink to this section

Gets or sets the rows of key tokens.

Declaration
public IList<String[]> Rows { get; set; }
Property Value
Type Description
IList<String[]>Gets or sets the rows of key tokens.

ShiftRowsLink to this section

Gets or sets the rows of key tokens displayed while shift is active. Optional. Keys pair with Rows by position; special tokens keep their action regardless of the shift state.

Declaration
public IList<String[]> ShiftRows { get; set; }
Property Value
Type Description
IList<String[]>Gets or sets the rows of key tokens displayed while shift is active. Optional. Keys pair with Rows by position; special tokens keep their action regardless of the shift state.

Methods

FromRowsLink to this section

Creates a layout from rows of space-separated key tokens.

Declaration
public static VirtualKeyboardLayout FromRows(String[] rows)
Parameters
Type Name Description
String[] rows The rows. Every row is a space-separated list of key tokens e.g. "q w e r t y".
Returns
Type Description
VirtualKeyboardLayout

FromRowsLink to this section

Creates a layout from rows of space-separated key tokens.

Declaration
public static VirtualKeyboardLayout FromRows(String[] rows, String[] shiftRows)
Parameters
Type Name Description
String[] rows The rows. Every row is a space-separated list of key tokens e.g. "q w e r t y".
String[] shiftRows
Returns
Type Description
VirtualKeyboardLayout
An error has occurred. This app may no longer respond until reloaded. Reload 🗙