.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

PictureCollection.AddPicture Method

Name Parameters Description
AddPicture(SpreadsheetImageSource, Cell) imageSource, topLeftCell Inserts a picture from the SpreadsheetImageSource object so that the top left corner of the picture is located at the specified cell.
AddPicture(SpreadsheetImageSource, CellRange) imageSource, targetRange Inserts a picture from the SpreadsheetImageSource object to fit in the specified range.
AddPicture(SpreadsheetImageSource, CellRange, Boolean) imageSource, targetRange, lockAspectRatio Inserts a picture from the SpreadsheetImageSource object to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(SpreadsheetImageSource, Single, Single) imageSource, x, y Inserts a picture from the SpreadsheetImageSource object at the specified location.
AddPicture(SpreadsheetImageSource, Single, Single, Single, Single) imageSource, x, y, width, height Inserts a picture from the SpreadsheetImageSource object at the specified location and resize it to the specified dimensions.
AddPicture(SpreadsheetImageSource, Single, Single, Single, Single, Boolean) imageSource, x, y, width, height, lockAspectRatio Inserts a picture from the SpreadsheetImageSource object at the specified location and resize it to the specified dimensions allowing you to lock the aspect ratio.
AddPicture(Image, Cell) image, topLeftCell Inserts a picture from the Image object so that the top left corner of the picture is located at the specified cell.
AddPicture(Image, CellRange) image, targetRange Inserts an image to fit in the specified range.
AddPicture(Image, CellRange, Boolean) image, targetRange, lockAspectRatio Inserts an image to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(Image, Single, Single) image, x, y Inserts a picture from the Image object at the specified location.
AddPicture(Image, Single, Single, Single, Single) image, x, y, width, height Inserts an image at the specified location and resize it to the specified dimensions.
AddPicture(Image, Single, Single, Single, Single, Boolean) image, x, y, width, height, lockAspectRatio Inserts a picture from a file at the specified location and resizes it to the specified dimensions allowing you to lock the aspect ratio.
AddPicture(String, Cell) filename, topLeftCell Inserts a picture from a file so that the top left corner of the picture is located at the specified cell.
AddPicture(String, CellRange) filename, targetRange Inserts a picture from a file to fit in the specified range.
AddPicture(String, CellRange, Boolean) filename, targetRange, lockAspectRatio Inserts a picture from a file to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(String, Single, Single) filename, x, y Inserts a picture from a file at the specified location.
AddPicture(String, Single, Single, Single, Single) filename, x, y, width, height Inserts a picture from a file at the specified location and resizes it to the specified dimensions.
AddPicture(String, Single, Single, Single, Single, Boolean) filename, x, y, width, height, lockAspectRatio Inserts a picture from a file at the specified location and resizes it to the specified dimensions allowing you to lock the aspect ratio.