Class ImageRef
A reference to a picture in the document (w:drawing containing a pic:pic). Image bytes are not buffered into the DOM: OpenStream() streams them from the source package part on demand, so the owning WordDocument must not be disposed first. The complete w:drawing XML is preserved as an unknown-XML island on this node so effects, wrap polygons and future markup round-trip losslessly.
public sealed class ImageRef : RunContentInline
- Inheritance
-
ImageRef
- Inherited Members
- Extension Methods
Constructors
Properties
- Anchor
Gets or sets the anchoring data for floating images, or null for inline images.
- ContentType
Gets or sets the content type of the image part, or null.
- CropBottom
Gets or sets the source crop from the bottom in thousandth-percent units (a:srcRect b; 100000 = 100%).
- CropLeft
Gets or sets the source crop from the left in thousandth-percent units (a:srcRect l; 100000 = 100%).
- CropRight
Gets or sets the source crop from the right in thousandth-percent units (a:srcRect r; 100000 = 100%).
- CropTop
Gets or sets the source crop from the top in thousandth-percent units (a:srcRect t; 100000 = 100%).
- Description
Gets or sets the alternative text (wp:docPr descr), or null.
- DrawingId
Gets or sets the drawing object id (wp:docPr id), or null.
- Height
Gets or sets the display height (wp:extent cy).
- Name
Gets or sets the drawing object name (wp:docPr name), or null.
- PartUri
Gets or sets the source part URI (for example "/word/media/image1.png"), or null.
- Placement
Gets or sets how the image participates in text flow.
- RelationshipId
Gets or sets the relationship id of the image part (r:embed), or null.
- Width
Gets or sets the display width (wp:extent cx).
Methods
- Accept(DomVisitor)
Dispatches to the visitor method for this node's concrete type.
- CloneCore()
Creates the deep copy for Clone(). Implementations copy all owned state, deep-clone children and copy unknown-XML islands.
- OpenStream()
Opens a read-only stream over the image bytes from the source package.