Share via


Event.Target Property

Visio Automation Reference

Gets or sets the target of an event. Read/write.

Version Information
 Version Added:  Visio 4.0

Syntax

expression.Target

expression   A variable that represents a Event object.

Return Value
String

Remarks

An event consists of an event-action pair. When the event occurs, the action is performed. An event also specifies the target of the action and arguments to send to the target.

If the action code of the event is visActCodeRunAddon, the Target property contains the name of the add-on to run.

If the action code of the event is visActCodeAdvise, the Target property is not available. Attempting to get or set the Target property for such an event causes an exception.

See Also