Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MouseEvent Object (Visio)

Published: July 16, 2012

The object passed to VisEventProc as the subject of MouseDown, MouseMove, and MouseUp events.

Version Added: Visio 2003

The default property of MouseEvent is ToString. The ToString property returns a string that represents the properties of the MouseEvent object and has the form

event code; Button property value; KeyButtonState property value; x property value; y property value; Window.Caption

where event code returns the code of the event that fired (MouseDown, MouseMove, or MouseUp) and Window.Caption returns the caption of the window that sourced the event. For example, if a user clicked the left mouse button near the middle of the drawing page while holding down the SHIFT key, in response to the MouseDown event, ToString might return


Use the Application property of the MouseEvent object to determine the Microsoft Visio instance hosting the object, and use the Window property to determine the Visio window associated with a mouse event.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.