EventItem
Source: aspose.
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.
new EventItem()
Constructor.
Methods
getAction()
Specifies 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).
getEnabled()
Represents a flag indicating if the event is enabled or disabled. The value of the property is BOOL integer constant.
getEventCode()
A 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.
getID()
The ID of the event.
getTarget()
Specifies the target of an event.
getTargetArgs()
Specifies a string containing arguments to be sent to the target of an event.
setAction()
Specifies 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).
setEnabled()
Represents a flag indicating if the event is enabled or disabled. The value of the property is BOOL integer constant.
setEventCode()
A 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.
setID()
The ID of the event.
setTarget()
Specifies the target of an event.
setTargetArgs()
Specifies a string containing arguments to be sent to the target of an event.