Home Notices Documents Classes Download Others Rice
Classes  >  domkeyeventargs  >  Char
domkeyeventargs class : Char getter

Description

Gets a character that should be displayed by the pressed key.

Syntax

domkeyeventargsInstance.Char

Arguments

None

Return value

ClassDescription
stringA character that should be displayed by the pressed key.

Sample code

1:

open method void anyHandler(domkeyeventargs dkea)

2:

...

3:

string char = dkea.Char;

4:

...

5:

endmethod

Notes

KeyDown event :

Returns empty string.

KeyPress event :

If the character that outputs with pressed key is displayable, that character is returned. If the character is not displayable, an empty string is returned.

KeyUp event :

Returns empty string.

Links for reference

None

Copyright © Rice All rights reserved.