Contents - Index - Previous - Next


InsertImage method




Declaration
function InsertImage(const Src: WideString): Boolean;

Description

Inserts an image at the current insertion point.

The method inserts an <IMG> tag at the current location in the document. If text is selected, the <IMG> tag replaces the text.
In the Src parameter, pass the path and file name of the image.

Returns True on success. Returns False on failure, if the selection spans more than one cell in a table, includes a mixture of elements inside and outside a table, or includes a design-time control.