DocOleObject module

class DocOleObject.DocOleObject

Bases: ShapeObject, IDocumentObject

Represents an OLE object in a document.

property CharacterFormat: CharacterFormat

Gets the character format of the OLE object.

property Container: Stream

Gets the OLE container.

property DisplayAsIcon: bool

Gets or sets whether the OLEObject is displayed as an Icon or Content. If True, the OLEObject is displayed as an icon.

property DocumentObjectType: DocumentObjectType

Gets the type of the document object.

property LinkPath: str

Gets or sets the link path.

property LinkType: OleLinkType

Gets the type of the OLE object.

property NativeData

Gets the native data of embedded OLE object.

property ObjectType: str

Gets or sets the type of the OLE object.

property OlePicture: DocPicture

Gets the OLE picture.

property OleStorageName: str

Gets or sets the name of the OLE Object storage.

property PackageFileName: str

Gets the name of file embedded in the package (only if OleType is “Package”).

property ProgId: str

Gets the programmatic identifier of the OLE object of an undefined type.

SetNativeData(nativeData: bytes)
<summary>

Sets the native data.

</summary> <param name=”nativeData”>The native data.</param>

SetOlePicture(picture: DocPicture)

Sets the OLE picture.