GemBox.Spreadsheet

ExcelPictureCollection.Add Method (MemoryStream, PositioningMode, AnchorCell, AnchorCell, ExcelPictureFormat)

Adds the image with defined anchor properties.

public void Add(
   MemoryStream imageStream,
   PositioningMode mode,
   AnchorCell topLeftCell,
   AnchorCell bottomRightCell,
   ExcelPictureFormat format
);

Parameters

imageStream
Stream of the image to be added.
mode
Positioning mode of the image.
topLeftCell
Top left anchor cell.
bottomRightCell
Bottom right anchor cell.
format
Picture format.

Remarks

If column or row offset is greater then that row height or that column width, excel will show image as that offset is set to 0.

See Also

ExcelPictureCollection Class | GemBox.Spreadsheet Namespace | ExcelPictureCollection.Add Overload List