KeyPressAction Property
Gets or sets the JavaScript action to be executed when the user types a keystroke.
Syntax
'Declaration Public Property KeyPressAction As PDFJavaScriptAction
'Usage Dim instance As PDFField Dim value As PDFJavaScriptAction instance.KeyPressAction = value value = instance.KeyPressAction
public PDFJavaScriptAction KeyPressAction {get; set;}
Property Value
A O2S.Components.PDFView4NET.Actions.PDFJavaScriptAction object specifying the action to be executed when the user types a keystroke.Remarks
This property specifies a JavaScript action to be performed when the user types a keystroke into a text field or combo box or modifies the selection in a scrollable list box. This action can check the keystroke for validity and reject or modify it.
This action has no meaning for PDFPushButtonField, PDFCheckBoxField and PDFRadioButtonListField fields.
This action has no meaning for PDFPushButtonField, PDFCheckBoxField and PDFRadioButtonListField fields.
Requirements
Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025
See Also