Inserts and returns an InlineImage at the beginning of this Element. The image that will be inserted is specified by the stream parameter.

 public virtual InlineImage InsertImageBefore(System.IO.Stream stream)
Public Overridable Function InsertImageBefore(ByVal stream As System.IO.Stream) As InlineImage

A containing the image to insert. to insert.

An InlineImage object that represents the image that was inserted.

If the image file is not a valid format. See InlineImage.Format for a list of supported formats.

InlineImage image = e.InsertImageBefore(strm);
Dim image As InlineImage = e.InsertImageBefore(strm)