LegacyDrawing Class

Legacy Drawing Object.When the object is serialized out as xml, its qualified name is comp:legacyDrawing.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Drawing.LegacyCompatibility.LegacyDrawing

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

Syntax

'Declaration
Public Class LegacyDrawing _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As LegacyDrawing
public class LegacyDrawing : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

12.2.2.1 legacyDrawing (Legacy Drawing Object)

This element specifies the shape ID for a legacy drawing object. These legacy drawing objects all have a shape ID associated with them that is unique across the entire document. In order to store these legacy shape IDs as well as new shape IDs this legacyDrawing element should be used.

Attributes

Description

spid (Shape ID)

Legacy Shape ID that is unique throughout the entire document. Legacy shape IDs should be assigned based on which portion of the document the drawing resides on. The assignment of these ids is broken down into clusters of 1024 values. The first cluster is 1-1024, the second 1025-2048 and so on.

[Example: Within a word processing application the spid should be assigned based on the page that the drawing resides on. If the drawing resides on the second page then the assigned spid should be a value between 1025 and 2048. end example]

[Example: Within a spreadsheet application the spid should be assigned based on the sheet that the drawing resides on. If the drawing resides on the second sheet then the assigned spid should be a value between 1025 and 2048. end example]

[Example: Within a presentation application the spid should be assigned based on the slide that the drawing resides on. If the drawing resides on the second slide then the assigned spid should be a value between 1025 and 2048. end example]

The possible values for this attribute are defined by the ST_ShapeID simple type (Part 1, §20.1.10.55).

[Note: The W3C XML Schema definition of this element’s content model (CT_Compat) is located in §A.4.3. end note]

© ISO/IEC29500: 2008.

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

LegacyDrawing Members

DocumentFormat.OpenXml.Drawing.LegacyCompatibility Namespace