共用方式為


OleObject Class

OLE Object.When the object is serialized out as xml, its qualified name is x:oleObject.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.OleObject

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(EmbeddedObjectProperties), FileFormatVersions.Office2010)> _
Public Class OleObject _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As OleObject
[ChildElementInfoAttribute(typeof(EmbeddedObjectProperties), FileFormatVersions.Office2010)]
public class OleObject : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • EmbeddedObjectProperties <x:objectPr>

[ISO/IEC 29500-1 1st Edition]

18.3.1.59 oleObject (Embedded Object)

Information for an individual embedded object.

Parent Elements

oleObjects (§18.3.1.60)

Child Elements

Subclause

objectPr (Embedded Object Properties)

§18.3.1.56

Attributes

Description

autoLoad (Auto Load)

Specifies whether the host application for the embedded object shall be called to load the object data automatically when the parent workbook is opened.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

dvAspect (Data or View Aspect)

Specifies the desired Data or View Aspect of the object when drawing or getting data

The possible values for this attribute are defined by the ST_DvAspect simple type (§18.18.24).

id (Relationship Id)

Namespace: .../officeDocument/2006/relationships

Relationship Id of the relationship pointing to the object persistence part.

The possible values for this attribute are defined by the ST_RelationshipId simple type (§22.8.2.1).

link (Embedded Object's Link Moniker)

The embedded object's link moniker.

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

oleUpdate (Linked Embedded Object Update)

Indicates whether the linked object updates the cached data automatically or only when the container requests an update, only present if the embedded object is linked.

The possible values for this attribute are defined by the ST_OleUpdate simple type (§18.18.49).

progId (Embedded Object ProgId)

ProgId of the embedded object.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

shapeId (Shape Id)

Id of the shape this object is associated with. Corresponds with the shape @id in the drawingML part.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_OleObject) is located in §A.2. 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

OleObject Members

DocumentFormat.OpenXml.Spreadsheet Namespace