ShapeCollection.InsertPicture(DocumentPosition, DocumentImageSource) Method
Inserts a picture as a floating object.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
pos | DocumentPosition | A DocumentPosition object that is the position in a paragraph to which a floating object will be anchored. |
imageSource | DocumentImageSource | A DocumentImageSource 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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InsertPicture(DocumentPosition, DocumentImageSource) 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.