1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01085415"><META NAME="lcid" CONTENT="1033"><title>EventItem Element</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><h1>EventItem Element</h1><p>
<p>Encapsulates an event code.</p>
<p>An <b class="bterm">EventItem</b> 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.</p>
</p><h2>Syntax</h2><pre><code>
<EventItem
ID
Action
EventCode
Target
TargetArgs
[Enabled]>
</EventItem>
</code></pre><h2>Attributes</h2><p><b class="bterm">ID</b></p><p>Required int. The ID of the event.</p><p><b class="bterm">Action</b></p><p>Required int. Specifies the action code of the parent <b class="bterm">EventItem</b> element.</p><p>For an <b class="bterm">EventItem</b> 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).
</p><p><b class="bterm">EventCode</b></p><p>Required int. A code indicating the event that triggers the add-on. For more information on event codes, see <a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/vievtEventCodes.asp" id="HV81901708" lcid=" ">Event codes</a> in the Microsoft Office Visio 2003 Automation Reference.</p><p><b class="bterm">Target</b></p><p>Required string. Specifies the target of an event.</p><p><b class="bterm">TargetArgs</b></p><p>Required string. Specifies a string containing arguments to be sent to the target of an event.</p><p><b class="bterm">Enabled</b></p><p>Optional boolean. Represents a flag indicating if the event is enabled or disabled.</p><table><tr><th>Value</th><th>Description</th></tr>
<tr><td>0</td><td>The event is disabled.</td></tr>
<tr><td>1</td><td>The event is enabled.</td></tr>
</table><h2>Element properties</h2><table><tr><th>Property</th><th>Value</th></tr>
<tr><td>Name</td><td>EventItem</td></tr>
<tr><td>Minimum Occurrences</td><td>0</td></tr>
<tr><td>Maximum Occurrences</td><td>Unbounded</td></tr>
</table><h2>Element information</h2><p><b class="bterm">Parent elements</b></p><p><a href="vixmlelemEventList.htm" id="HV01085416" lcid=""><b class="bterm">EventList</b></a></p><p><b class="bterm">Child elements</b></p><p>None</p><p></p><h2>See also</h2><p><a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/viobjEvent.asp" id="HV81901041" lcid=" "><b class="bterm">Event</b></a> object</p><center><a href="XMLSchemaCopyright_HV01147162.htm">©2003-2004 Microsoft Corporation. All rights reserved.</a>
Permission to copy, display and distribute this document is available at: <a
href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&CTT=11&Origin=HV011232471033"
target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>
|