Skip to main content
A newer version of this page is available.
All docs
V18.2

SubDocument.InsertPicture(DocumentPosition, Image) Method

OBSOLETE

This method has become obsolete. Use the 'InsertPicture' method instead.

Inserts a picture as a floating object.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.ShapeCollection.InsertPicture(DocumentPosition pos, System.Drawing.Image image)' method instead.")]
Shape InsertPicture(
    DocumentPosition pos,
    Image image
)

Parameters

Name Type Description
pos DocumentPosition

A DocumentPosition that is a 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 a specified picture.

Remarks

The InsertPicture method inserts a floating picture anchored at the beginning of the first paragraph that contains the specified position.

See Also