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

SubDocument.InsertImage(DocumentPosition, DocumentImageSource) Method

OBSOLETE

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

Inserts an image into the specified position in the document.

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.DocumentImageCollection.Insert(DocumentPosition pos, DocumentImageSource imageSource)' method instead.")]
DocumentImage InsertImage(
    DocumentPosition pos,
    DocumentImageSource imageSource
)

Parameters

Name Type Description
pos DocumentPosition

A DocumentPosition object representing the position to insert an image.

imageSource DocumentImageSource

A DocumentImageSource object containing information about the image to insert.

Returns

Type Description
DocumentImage

A DocumentImage object representing an inline image in the document.

Remarks

Tip

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E1525.

See Also