WebExtension class

Office 2013 and later

Defines the WebExtension Class. The root element of WebExtensionPart. When the object is serialized out as xml, its qualified name is we:webextension.

Namespace:  DocumentFormat.OpenXml.Office2013.WebExtension
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

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

2.1.1 webextension

Target namespace: http://schemas.microsoft.com/office/webextensions/webextension/2010/11

A CT_OsfWebExtension element (section 2.2.7) that specifies an office app document part [ISO/IEC-29500-1].

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="webextension" type="CT_OsfWebExtension"/>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.2.7 CT_OsfWebExtension

Target namespace: http://schemas.microsoft.com/office/webextensions/webextension/2010/11

Referenced by: webextension

This is the root element of an office app document part.

Child Elements:

reference: A CT_OsfWebExtensionReference element (section 2.2.5) that specifies the primary reference to an office app.

alternateReferences: A CT_OsfWebExtensionReferenceList element (section 2.2.6) that specifies a list of CT_OsfWebExtensionReference elements (section 2.2.5). The first of these alternateReferences is used if the office app could not be located using the primary reference.

properties: A CT_OsfWebExtensionPropertyBag element (section 2.2.2) that contains a set of office app custom properties.

bindings: A CT_OsfWebExtensionBindingList element (section 2.2.4) that specifies a list of office app bindings.

snapshot: A CT_Blip element ([ISO/IEC-29500-1] section 20.1.8.13) that specifies a static image used to render the contents of the office app when it is not active.

extLst: A CT_OfficeArtExtensionList element ([ISO/IEC-29500-1] section A.4.1) that specifies a list of extensions for an office app. This element MAY be ignored.

Attributes:

id: A string attribute ([XMLSCHEMA2] section 3.2.1). This attribute uniquely identifies the office app instance in the current document.

frozen: A Boolean attribute ([XMLSCHEMA2] section 3.2.2) that specifies whether the user can interact with the office app or not.

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

<xsd:complexType name="CT_OsfWebExtension">

<xsd:sequence>

<xsd:element name="reference" type="CT_OsfWebExtensionReference"/>

<xsd:element name="alternateReferences" type="CT_OsfWebExtensionReferenceList" minOccurs="0" maxOccurs="1"/>

<xsd:element name="properties" type="CT_OsfWebExtensionPropertyBag"/>

<xsd:element name="bindings" type="CT_OsfWebExtensionBindingList"/>

<xsd:element name="snapshot" type="a:CT_Blip" minOccurs="0" maxOccurs="1"/>

<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="id" type="xsd:string" use="required"/>

<xsd:attribute name="frozen" type="xsd:boolean" use="optional" default="false"/>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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: