OlkTextBox 事件 (Outlook)OlkTextBox.KeyDown event (Outlook)

当用户按下某个键时发生。Occurs when a user presses a key.


expressionexpression. KeyDown( _KeyCode_ , _Shift_ )

_表达式_一个代表OlkTextBox对象的变量。expression A variable that represents an OlkTextBox object.


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
KeyCodeKeyCode 必需Required LongLong 所按键的数值。The numerical value of the key pressed.
ShiftShift 必需Required IntegerInteger OlShiftState 枚举中常量的按位或掩码, 指定是否按下了SHIFTCTRLALT键。A bitwise-OR mask of constants in the OlShiftState enumeration that specifies whether the SHIFT, CTRL, or ALT keys have been pressed.


KeyDown事件过程中按下的修改键 (SHIFTCTRLALT) 的状态可通过_SHIFT_参数访问。The state of the modifier keys (SHIFT, CTRL, or ALT) that are pressed during the KeyDown event is accessible through the Shift parameter.

另请参阅See also

所示的对象OlkTextBox Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.