DocEvents class

Office 2013 and later

Defines the DocEvents Class. When the object is serialized out as xml, its qualified name is wne:docEvents.

Namespace:  DocumentFormat.OpenXml.Office.Word
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

2.1.4.3 CT_DocEvents

Target namespace: http://schemas.microsoft.com/office/word/2006/wordml

Referenced by: CT_VbaSuppData

A complex type that specifies a container of document events that are active for this document.

Child Elements:

eventDocNew : An element that specifies that the New event is active.

eventDocOpen : An element that specifies that the Open event is active.

eventDocClose : An element that specifies that the Close event is active.

eventDocSync : An element that specifies that the Sync event is active.

eventDocXmlAfterInsert : An element that specifies that the XmlAfterInsert event is active.

eventDocXmlBeforeDelete : An element that specifies that the XmlBeforeDelete event is active.

eventDocContentControlAfterInsert : An element that specifies that the ContentControlAfterInsert event is active.

eventDocContentControlBeforeDelete : An element that specifies that the ContentControlBeforeDelete event is active.

eventDocContentControlOnExit : An element that specifies that the ContentControlOnExit event is active.

eventDocContentControlOnEnter : An element that specifies that the ContentControlOnEnter event is active.

eventDocStoreUpdate : An element that specifies that the StoreUpdate event is active.

eventDocContentControlContentUpdate : An element that specifies that the ContentControlContentUpdate event is active.

eventDocBuildingBlockAfterInsert : An element that specifies that the BuildingBlockAfterInsert event is active.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment defines the contents of this complex type.

<xsd:complexType name="CT_DocEvents">

<xsd:sequence>

<xsd:element name="eventDocNew" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocOpen" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocClose" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocSync" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocXmlAfterInsert" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocXmlBeforeDelete" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlAfterInsert" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlBeforeDelete" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlOnExit" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlOnEnter" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocStoreUpdate" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlContentUpdate" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocBuildingBlockAfterInsert" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

2.1.5.1 CT_DocEvents

Target namespace: http://schemas.microsoft.com/office/word/2006/wordml

Referenced by: CT_VbaSuppData

A complex type that specifies a container of document events that are active for this document.

Child Elements:

eventDocNew: An element that specifies that the New event is active.

eventDocOpen: An element that specifies that the Open event is active.

eventDocClose: An element that specifies that the Close event is active.

eventDocSync: An element that specifies that the Sync event is active.

eventDocXmlAfterInsert: An element that specifies that the XmlAfterInsert event is active.

eventDocXmlBeforeDelete: An element that specifies that the XmlBeforeDelete event is active.

eventDocContentControlAfterInsert: An element that specifies that the ContentControlAfterInsert event is active.

eventDocContentControlBeforeDelete: An element that specifies that the ContentControlBeforeDelete event is active.

eventDocContentControlOnExit: An element that specifies that the ContentControlOnExit event is active.

eventDocContentControlOnEnter: An element that specifies that the ContentControlOnEnter event is active.

eventDocStoreUpdate: An element that specifies that the StoreUpdate event is active.

eventDocContentControlContentUpdate: An element that specifies that the ContentControlContentUpdate event is active.

eventDocBuildingBlockAfterInsert: An element that specifies that the BuildingBlockAfterInsert event is active.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment defines the contents of this complex type.

<xsd:complexType name="CT_DocEvents">

<xsd:sequence>

<xsd:element name="eventDocNew" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocOpen" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocClose" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocSync" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocXmlAfterInsert" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocXmlBeforeDelete" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlAfterInsert" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlBeforeDelete" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlOnExit" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlOnEnter" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocStoreUpdate" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocContentControlContentUpdate" minOccurs="0" maxOccurs="1"/>

<xsd:element name="eventDocBuildingBlockAfterInsert" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: