|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+.
GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 18.104.22.1688
public ExcelPicture Add(
Public Function Add (
picturePath As String,
positionFrom As AnchorCell
) As ExcelPicture
- Type: SystemString
The picture's path.
- Type: GemBox.SpreadsheetAnchorCell
The picture's position.
A new picture added to the worksheet which moves but doesn't size with cells.
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.