EventItem class

EventItem class

Encapsulates an event code. An EventItem element can trigger two kinds of actions: it can run an add-on, or it can send a notification of the event to the calling program.

The EventItem type exposes the following members:

Constructors

ConstructorDescription
EventItem()Constructor.

Properties

PropertyDescription
idThe ID of the event.
actionSpecifies the action code of the parent EventItem element.For an EventItem element to be saved in a DatadiagramML file, it must be persistable. Currently, the only valid action code a persistable event can have is 1 (ONEVENT_ACT_RUNADDON).
event_codeA code indicating the event that triggers the add-on. For more information on event codes, see Event Codes in the Microsoft Visio 2007 Automation Reference.
targetSpecifies the target of an event.
target_argsSpecifies a string containing arguments to be sent to the target of an event.
enabledRepresents a flag indicating if the event is enabled or disabled.

See Also