Muokkaa

Jaa


VisEventCodes enumeration (Visio)

Codes for Microsoft Visio events, event actions, and event IDs.

Constant Value Description
visActCodeAdvise 2 AddAdvise action code
visActCodeRunAddon 1 RunAddon action code
visEvtAdd 32768 Event code for adding an Event object, passed to the Add and AddAdvise methods. Used in conjunction with object codes for particular objects.
visEvtAfterModal 64 AfterModal event
visEvtApp 4096 Application object
visEvtAppActivate 1 AppActivated event
visEvtAppDeactivate 2 AppDeactivated event
visEvtBeforeModal 32 BeforeModal event
visEvtBeforeQuit 16 BeforeQuit event
visEvtCell 2048 Cell object
visEvtCodeAfterCoauthMerge 14 AfterCoauthMerge event code
visEvtCodeAfterForcedFlush 201 AfterForcedFlush event code
visEvtCodeAfterResume 209 AfterResume event code
visEvtCodeAfterResumeEvents 213 AfterResumeEvents event code
visEvtCodeBefDocSaveAs 8 BeforeDocumentSaveAs event code
visEvtCodeBefDocSave 7 BeforeDocumentSave event code
visEvtCodeBefForcedFlush 200 BeforeForcedFlush event code
visEvtCodeBeforeReplaceShapes 913 BeforeReplaceShapes event code
visEvtCodeBeforeSuspend 208 BeforeSuspend event code
visEvtCodeBeforeSuspendEvents 212 BeforeSuspendEvents event code
visEvtCodeBefSelDel 901 BeforeSelectionDelete event code
visEvtCodeBefWinPageTurn 703 BeforeWindowPageTurn event code
visEvtCodeBefWinSelDel 702 BeforeWindowSelDelete event code
visEvtCodeCalloutRelationshipAdded 504 CalloutRelationshipAdded event code
visEvtCodeCalloutRelationshipDeleted 505 CalloutRelationshipDeleted event code
visEvtCodeCancelConvertToGroup 908 ConvertToGroupCanceled event code
visEvtCodeCancelDocClose 10 DocumentCloseCanceled event code
visEvtCodeCancelMasterDel 401 MasterDeleteCanceled event code
visEvtCodeCancelPageDel 501 PageDeleteCanceled event code
visEvtCodeCancelQuit 205 QuitCanceled event code
visEvtCodeCancelReplaceShapes 912 ReplaceShapesCancelled event code
visEvtCodeCancelSelDel 904 SelectionDeleteCanceled event code
visEvtCodeCancelSelGroup 910 GroupCanceled event code
visEvtCodeCancelStyleDel 301 StyleDeleteCanceled event code
visEvtCodeCancelSuspend 207 SuspendCanceled event code
visEvtCodeCancelSuspendEvents 211 SuspendEventsCanceled event code
visEvtCodeCancelUngroup 906 UngroupCanceled event code
visEvtCodeCancelWinClose 707 WindowCloseCanceled event code
visEvtCodeContainerRelationshipAdded 502 ContainerRelationshipAdded event code
visEvtCodeContainerRelationshipDeleted 503 ContainerRelationshipDeleted event code
visEvtCodeDocCreate 1 DocumentCreated event code
visEvtCodeDocDesign 6 DocumentDesignModeEntered event code
visEvtCodeDocOpen 2 DocumentOpened event code
visEvtCodeDocRunning 5 DocumentRunModeEntered event code
visEvtCodeDocSaveAs 4 DocumentSavedAs event code
visEvtCodeDocSave 3 DocumentSaved event code
visEvtCodeEnterScope 202 EnterScope event code
visEvtCodeExitScope 203 ExitScope event code
visEvtCodeInval 0 An event code no event can have.
visEvtCodeKeyDown 712 KeyDown event code
visEvtCodeKeyPress 713 KeyPress event code
visEvtCodeKeyUp 714 KeyUp event code
visEvtCodeMouseDown 709 MouseDown event code
visEvtCodeMouseMove 710 MousePress event code
visEvtCodeMouseUp 711 MouseUp event code
visEvtCodeQueryCancelConvertToGroup 907 QueryCancelConvertToGroup event code
visEvtCodeQueryCancelDocClose 9 QueryCancelDocumentClose event code
visEvtCodeQueryCancelMasterDel 400 QueryCancelMasterDelete event code
visEvtCodeQueryCancelPageDel 500 QueryCancelPageDelete event code
visEvtCodeQueryCancelReplaceShapes 911 QueryCancelReplaceShapes event code
visEvtCodeQueryCancelQuit 204 QueryCancelQuit event code
visEvtCodeQueryCancelSelDel 903 QueryCancelSelectionDeleted event code
visEvtCodeQueryCancelSelGroup 909 QueryCancelGroup event code
visEvtCodeQueryCancelStyleDel 300 QueryCancelStyleDeleted event code
visEvtCodeQueryCancelSuspend 206 QueryCancelSuspend event code
visEvtCodeQueryCancelSuspendEvents 210 QueryCancelSuspendEvents event code
visEvtCodeQueryCancelUngroup 905 QueryCancelUngroup event code
visEvtCodeQueryCancelWinClose 706 QueryCancelWindowClose event code
visEvtCodeRuleSetValidated 13 RuleSetValidated event code
visEvtCodeSelAdded 902 SelectionAdded event code
visEvtCodeSelectionMovedToSubprocess 12 SelectionMovedToSubprocess event code
visEvtCodeShapeBeforeTextEdit 803 BeforeShapeTextEdit event code
visEvtCodeShapeDelete 801 ShapesDeleted event code
visEvtCodeShapeExitTextEdit 804 ShapeExitedTextEdit event code
visEvtCodeShapeParentChange 802 ShapeParentChanged event code
visEvtCodeShapesReplaced 914 ShapesReplaced event code
visEvtCodeViewChanged 705 ViewChanged event code
visEvtCodeWinOnAddonKeyMSG 708 OnKeystrokeMessageForAddon event code
visEvtCodeWinPageTurn 704 WindowTurnToPage event code
visEvtCodeWinSelChange 701 SelectionChanged event code
visEvtConnect 256 Connect object
visEvtDel 16384 Event code for deleting an Event object, passed to the Delete and AddAdvise methods. Used in conjunction with object codes for particular objects.
visEvtDataRecordset 32 DataRecordset object
visEvtDoc 2 Document object
visEvtFormula 4096 FormulaChanged event
visEvtIDInval -1 An ID no event can have.
visEvtIdle 1024 VisioIsIdle event code
visEvtIdMostRecent 0 The ID of the most recent event to fire.
visEvtMarker 256 MarkerEvent event
visEvtMaster 8 Master object
visEvtMod 8192 Used in conjunction with object codes for particular objects to create events that report a change to an object. For example, visEvtMod + visEvtCell consitutes the CellChanged event.
visEvtNonePending 512 NoEventsPending event
visEvtObjActivate 4 AppObjActivated event
visEvtObjDeactivate 8 AppObjDeactivated
visEvtPage 16 Page object
visEvtRemoveHiddenInformation 11 AfterRemoveHiddenInformation event
visEvtRow 1024 Row object
visEvtSection 512 Section object
visEvtShape 64 Shape object
visEvtShapeDataGraphicChanged 807 ShapeDataGraphicChanged event
visEvtShapeLinkAdded 805 ShapeLinkAdded event
visEvtShapeLinkDeleted 806 ShapeLinkDeleted event
visEvtStyle 4 Style object
visEvtText 128 Text object
visEvtWinActivate 128 WindowActivated event
visEvtWindow 1 Window object
visScopeIDInval -1 An ID no event scope can have.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.