Class OleObject
An embedded or linked OLE object (w:object / o:OLEObject).
public sealed class OleObject
- Inheritance
-
OleObject
- Inherited Members
Remarks
What renders is never the payload — it is the display representation Word stored alongside it, a VML picture whose image is the application's own rendering of the object at the time it was last activated. DocWright models that preview as an ordinary ShapeRef and hangs this description off it, so an OLE object draws through the shape pipeline with no special case anywhere downstream.
The payload part is left in DocumentPreservation, so its bytes are available through OpenStream() at PartUri and the writer re-emits them untouched. DocWright does not interpret, unwrap or execute a payload.
Constructors
Properties
- ContentType
Gets or sets the payload part's content type, or null.
- Kind
Gets or sets whether the payload is embedded or linked.
- PartUri
Gets or sets the payload part URI, or null when it could not be resolved. The part stays preserved, so its bytes are reachable through Parts.
- ProgId
Gets or sets the programmatic identifier, for example "Excel.Sheet.12", or null.
- RelationshipId
Gets or sets the relationship id of the payload part, or null.
- ShownAsIcon
Gets or sets whether the object is shown as an icon rather than as its content (
o:OLEObject@DrawAspect).
Methods
- Clone()
Creates a copy.