Click or drag to resize
ExcelPictureCollectionAdd Method (String, AnchorCell)
Adds a new picture to the worksheet which moves but doesn't size with cells. Picture size will be determined by using GDI+.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public ExcelPicture Add(
	string picturePath,
	AnchorCell positionFrom
)

Parameters

picturePath
Type: SystemString
The picture's path.
positionFrom
Type: GemBox.SpreadsheetAnchorCell
The picture's position.

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.

picturePath parameter must contain supported extension (for example, ".png"), otherwise exception is thrown.

This method uses GDI+ to determine picture's size.

See Also