Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditSubDocument.InsertImage(IdxRichEditDocumentPosition,TGraphic) Method

Inserts an inline picture at the specified position in the parent document.

#Declaration

Delphi
function InsertImage(const APos: IdxRichEditDocumentPosition; AImage: TGraphic): IdxRichEditDocumentImage;

#Parameters

Name Type Description
APos IdxRichEditDocumentPosition

The target document position.

AImage TGraphic

The source image container with a bitmap.

#Returns

Type Description
IdxRichEditDocumentImage

The created inline image.

#Remarks

Call the InsertImage function to add a new inline image at any position in the parent subdocument.

#Limitations

An inline document image’s Office Image container does not support vector images to ensure compatibility with popular document formats. Ensure that the source image container (a TdxSmartImage or TdxSmartGlyph instance) does not contain an SVG image. Otherwise, an exception occurs.

Tip

You can call the image container’s ConvertToBitmap procedure to rasterize the stored image.

See Also