CompatExtension class

Office 2013 and later

Defines the CompatExtension Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is a14:compatExt.

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension

Namespace:  DocumentFormat.OpenXml.Office2010.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class CompatExtension : OpenXmlLeafElement

2.3.20 compatExt

Target namespace: http://schemas.microsoft.com/office/drawing/2010/main

A CT_CompatExt element that specifies a legacy drawing object. The legacy drawing object MUST be a form control or a legacy OLE or ActiveX control object.

The application MAY delete this legacy shape when loading.<92>

See section 2.2.6 for how this element integrates with the Open XML file formats -as specified in [ISO/IEC-29500-1].

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

<xsd:element name="compatExt" type="CT_CompatExt"/>

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

2.5.72 CT_CompatExt

Target namespace: http://schemas.microsoft.com/office/drawing/2010/main

Referenced by: compatExt

A complex type that specifies a legacy drawing object.

Attributes:

spid: An xsd:string attribute ([XMLSCHEMA2] section 3.2.1) that specifies the shape identifier of a legacy drawing object.

This string has the following characteristics:

It begins with "_x0000_" followed by one character and a number that specifies the identifier: _x0000_[c]<shape id>

The character [c] MUST be set to ‘s’.

Shape identifiers MUST be in the range from 1025 through 268435456.

Shape identifiers are clustered, and each cluster has 1024 values. The first cluster ranges from 1025 through 2048.

Shape identifiers in the same cluster exist in only one worksheet.

It MUST NOT contain NCR characters.

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

<xsd:complexType name="CT_CompatExt">

<xsd:attribute name="spid" type="xsd:string"/>

</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: