Class NumpadKey
Inheritance
Inherited Members
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: Telerik.WinControls.UI.dll
Syntax
public class NumpadKey : Key, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IKey
Constructors
NumpadKey()
This method is used internally. To create a new NumpadKey instance use the other constructor instead.
Declaration
public NumpadKey()
NumpadKey(Int32, String, Int32, String, Double, Double, Boolean, Font, Font)
Initializes a new instance of the NumpadKey class.
Declaration
public NumpadKey(int numLockActiveCode, string activeKeyText, int secondaryKeyCode, string secondaryKeyText, double width = 1, double height = 1, bool sharpStyle = false, Font activeKeyFont = null, Font secondaryKeyFont = null)
Parameters
System.Int32
numLockActiveCode
The virtual key code of active state. |
System.String
activeKeyText
The text in active state. |
System.Int32
secondaryKeyCode
The virtual key code in alternate mode. |
System.String
secondaryKeyText
The text in alternate state. |
System.Double
width
The logical width of key. |
System.Double
height
The logical height of key. |
System.Boolean
sharpStyle
Indicates whether the key has more noticeable(sharp) style. |
System.Drawing.Font
activeKeyFont
|
System.Drawing.Font
secondaryKeyFont
|
Fields
SecondaryFontProperty
Dependency property that holds the displayed font when NumLock key is not active.
Declaration
public static RadProperty SecondaryFontProperty
Field Value
RadProperty
|
Properties
AccessibleName
Gets or sets the name of the control for use by accessibility client applications.
Declaration
public override string AccessibleName { get; set; }
Property Value
System.String
|
Overrides
Font
Gets or sets the font. Font type defines a particular format for text, including font face, size, and style attributes. Note that when Numlock key is not active the SecondaryFont will be returned.
Declaration
public override Font Font { get; set; }
Property Value
System.Drawing.Font
|
Overrides
SecondaryDisplayText
Gets or sets the display text for the secondary state when NumLock is not active.
Declaration
public string SecondaryDisplayText { get; set; }
Property Value
System.String
|
SecondaryFont
Gets or sets the displayed font when NumLock is not active.
Declaration
public Font SecondaryFont { get; set; }
Property Value
System.Drawing.Font
|
SecondaryKeyInfo
Gets or sets the associated key info object for the secondary state when NumLock is not active.
Declaration
public KeyInfo SecondaryKeyInfo { get; set; }
Property Value
KeyInfo
|
SecondaryVirtualKey
Gets or sets the virtual key code used when NumLock is not active.
Declaration
public int SecondaryVirtualKey { get; set; }
Property Value
System.Int32
|
ThemeEffectiveType
Gets the type by which this instance is being themed.
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
System.Type
|
Overrides
Methods
OnLoaded()
Called when the element has been successfully loaded. That includes loading of all its children as well.
Declaration
protected override void OnLoaded()
Overrides
SendKey()
Sends a virtual key code or string.
Declaration
public override void SendKey()
Overrides
UpdateKey()
Updates key text and other necessary styles.
Declaration
public override void UpdateKey()