Поделиться через


CompatExtension Class

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

Inheritance Hierarchy

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)

Syntax

'Декларация
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class CompatExtension _
    Inherits OpenXmlLeafElement
'Применение
Dim instance As CompatExtension
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class CompatExtension : OpenXmlLeafElement

Remarks

2.3.2 compatExt

Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main

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

The application MAY chose to delete this legacy shape on load<7>.

See section 2.2.5 for how this element integrates with [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.2 CT_CompatExt

Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main

Referenced by: compatExt

A complex type that specifies a legacy drawing object.

Attributes:

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

This string has the following characteristics:

?It begins with "_x0000_" followed by 1 character and a number that specifies the ID: _x0000_[c]<shape id>

?The character [c] MUST be 's'.

?Shape IDs MUST be between 1025 and 268435456.

?Shape IDs are clustered together, and each cluster has 1024 values.  The first cluster ranges from 1025 to 2048.

?Shape IDs within the same cluster SHOULD only exist in one worksheet.

?It MUST NOT contain NCR (Numeric Character Reference) 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).

Thread Safety

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

See Also

Reference

CompatExtension Members

DocumentFormat.OpenXml.Office2010.Drawing Namespace