HtmlEventArgs.CharacterCode Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the integer Unicode value of a key that was pressed.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Public ReadOnly Property CharacterCode As Integer
public int CharacterCode { get; }

Property Value

Type: System.Int32
An integer Unicode value of the key that was pressed if the EventType property value is "keypress"; otherwise, 0 (zero).

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.