Skip to main content
A newer version of this page is available. .

ShapeCollection.InsertPicture(DocumentPosition, Image) Method

Inserts a picture as a floating object.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

Shape InsertPicture(
    DocumentPosition pos,
    Image image
)

Parameters

Name Type Description
pos DocumentPosition

A DocumentPosition object that is the position in a paragraph to which a floating object will be anchored.

image Image

A Image object specifying the image to insert.

Returns

Type Description
Shape

A Shape interface exposing properties and methods of a newly created floating object containing the specified picture.

Remarks

The InsertPicture method positions a floating picture at the beginning of the first paragraph on the page that contains the floating object’s anchor.

To insert an inline picture, use the DocumentImageCollection.Insert method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the InsertPicture(DocumentPosition, Image) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also