Click or drag to resize
ExcelPictureCollectionAdd Method (MemoryStream, ExcelPictureFormat, AnchorCell, Double, Double, LengthUnit)
Adds a new picture to the worksheet which moves but doesn't size with cells.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public ExcelPicture Add(
	MemoryStream pictureStream,
	ExcelPictureFormat pictureFormat,
	AnchorCell positionFrom,
	double width,
	double height,
	LengthUnit unit
)

Parameters

pictureStream
Type: System.IOMemoryStream
The picture's stream.
pictureFormat
Type: GemBox.SpreadsheetExcelPictureFormat
The picture's format.
positionFrom
Type: GemBox.SpreadsheetAnchorCell
The picture's position.
width
Type: SystemDouble
The picture's width.
height
Type: SystemDouble
The picture's height.
unit
Type: GemBox.SpreadsheetLengthUnit
The length unit in which all length parameters are specified.

Return Value

Type: ExcelPicture
A new picture added to the worksheet which moves but doesn't size with cells.
Remarks
Position.Mode of a newly added picture will be Move.
See Also