Action property

Microsoft Visio Developer Reference

Action property

   Example   

Gets or sets the action code of an Event object.

Version added

4.0

Syntax

intRet = object.Action
object.Action = actionCode

intRet

Integer. The Event object's action code.

object

Required. An expression that returns an Event object.

actionCode

Required Integer. The new action code to assign.

Remarks

An Event object consists of an event-action pair—an event triggers an action. An action code is the numeric constant for the action that the event triggers.

Visio supports the following action codes.

Constant

Value

visActCodeRunAddon

1

visActCodeAdvise

2