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

在控件上出现鼠标移动后发生。Occurs after a mouse movement has been registered over the control.

语法Syntax

表达式MouseMove(Button, Shift, x, y)expression.MouseMove (Button, Shift, x, y)

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

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
ButtonButton 必需Required IntegerInteger 一个**OlMouseButton** 常量, 指定鼠标上的哪个按钮已被按下。An OlMouseButton constant that specifies which button on the mouse has been 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.
XX 必需Required [OLE_XPOS_CONTAINER][OLE_XPOS_CONTAINER] 标识鼠标光标在 X 轴上相对于窗体的位置。Identifies the location of the mouse cursor on the X-axis relative to the form.
YY 必需Required [OLE_YPOS_CONTAINER][OLE_YPOS_CONTAINER] 标识鼠标光标在 Y 轴上相对于窗体的位置。Identifies the location of the mouse cursor on the Y-axis relative to the form.

说明Remarks

ALT键会触发MouseMove事件。Pressing the ALT key fires the MouseMove event.

另请参阅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.