Page tree
Skip to end of metadata
Go to start of metadata
To insert an image into a section of your document, use one of the following methods. Each method inserts an image at the beginning or end of an Element. An Element object represents an editable region in a document, such as a section or paragraph. The document itself is an Element.

 

Insert an image specified by file name at the beginning of the element.

 

Insert an image specified by file name at the end of the element.

 

Insert an image contained in the specified stream at the beginning of the element.

 

Inserts the image contained in the specified stream at the end of the element.

 

Before adding an image to your file, you must create a content region in which to insert the image. Each editable region in a Word file is represented by an Element object, or an object that extends Element, such as a Document

To insert an image, use one of the methods listed at the beginning of this section, for example:

An inserted image is returned as an InlineImage object. The InlineImage class extends Element.

  • No labels