Trigger method (Event object)

Microsoft Visio Developer Reference

Trigger method (Event object)

See also   Example   

Causes an event's action to be performed.

Version added

4.0

Syntax

object.Trigger contextString

object

Required. An expression that returns an Event object.

contextString

The string to send to the target of the event.

Remarks

Triggering an event causes the action associated with the event to be performed. The specified context string is passed to the target of the action:

  • If the action is to run an add-on (visEvtCodeRunAddon), the string is passed in the command line string sent to the add-on.
  • If the action is to send a notification to the calling program (visEvtCodeAdvise), the string is passed in the moreInfo parameter of the notification.