Skip to end of metadata
Go to start of metadata

Description

This class is used to represent an inline image in a Word document. The types of images that Word supports are jpg, png, bmp, and gif. Inline images are part of the InlineElement objects of an Element.

C#
vb.net

Remarks

To create a new inline image, use the insert methods for inline images from the Element or Position class.

Examples

The following sample demonstrates creating a inline image at the end of a new document and retrieving the first inline image of an existing document.

C#
vb.net

Properties

Name

Description

Height

Sets or returns an int that represents the image's height in twips. One twip = (1/20 pt) or (1/1440 in).

Image

Sets or returns the image in its default format.

ImageFormat

Returns an InlineImage.Format object that represents the format that the image is stored as in Word. (Jpg, Png, Bmp, Gif)

Width

Sets or returns an int that represents the image's width in twips. One twip = (1/20 pt) or (1/1440 in).

Methods

Name

Description

GetImage(InlineImage.Format)

Returns the image in the given format.

Nested Classes

Name

Description

Format

Image formats for an inline image.
  • No labels